Making a release workflow, part 1/?.

This commit is contained in:
JesseBrault0709 2023-01-13 16:55:39 -06:00
parent 90db278e39
commit 11899059d1
2 changed files with 28 additions and 0 deletions

26
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: StaticSiteGenerator Release
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-SNAPSHOT'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: 17
distribution: adopt
cache: gradle
- name: Gradle Test
run: ./gradlew test
- name: Gradle Install
run: ./gradlew :cli:install
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: cli/build/distributions/*

2
.gitignore vendored
View File

@ -5,3 +5,5 @@
build
.idea
.DS_Store