diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml new file mode 100644 index 0000000..e30e600 --- /dev/null +++ b/.github/workflows/pre-release.yaml @@ -0,0 +1,32 @@ +--- +name: "pre-release" + +on: + push: + branches: + - main + +jobs: + pre-release: + name: "Pre Release" + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 + - name: Build with Gradle + uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 + with: + arguments: dist-zip + - uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: | + build/distributions/*.zip \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ab87b25..9d16107 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,19 +1,29 @@ -#name: release -# -#on: push -# -#jobs: -# create-release: -# runs-on: windows-latest -# steps: -# - uses: actions/checkout@v3 -# - uses: actions/setup-java@v3 -# with: -# java-version: '17' -# distribution: 'temurin' -# - name: Validate Gradle wrapper -# uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 -# - name: Build with Gradle -# uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 -# with: -# arguments: dist-zip +--- +name: release + +on: + push: + tags: + - v* + +jobs: + create-release: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 + - name: Build with Gradle + uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 + with: + arguments: dist-zip + - uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + prerelease: false + files: | + build/distributions/*.zip diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d5e5425..88a6b01 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,4 +1,4 @@ -name: Build and test +name: build and test on: push jobs: build: