From 11899059d1e6930ac55917089d27bf1e8b7ac208 Mon Sep 17 00:00:00 2001 From: JesseBrault0709 <62299747+JesseBrault0709@users.noreply.github.com> Date: Fri, 13 Jan 2023 16:55:39 -0600 Subject: [PATCH] Making a release workflow, part 1/?. --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6eca39c --- /dev/null +++ b/.github/workflows/release.yml @@ -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/* \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1f93dfc..92782b3 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ build .idea + +.DS_Store