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