diff --git a/.github/workflows/main-autorelease.yml b/.github/workflows/main-autorelease.yml index 77f28b2896..3879a31745 100644 --- a/.github/workflows/main-autorelease.yml +++ b/.github/workflows/main-autorelease.yml @@ -1,7 +1,7 @@ # This workflow will build a Java project with Gradle # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Java CI with Gradle +name: Java CI with AutoRelease on: [push, pull_request] @@ -14,6 +14,10 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 + - name: Generate release tag + id: tag + run: | + echo "::set-output name=release_tag::Autobuild_$(date +"%d.%m.%Y_%H-%M")" - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle and upload to Releases @@ -21,4 +25,4 @@ jobs: GH_TOKEN: ${{ secrets.REPO_TOKEN }} run: | ./gradlew build - gh release create latest proxy/build/libs/*-all.jar --generate-notes --prerelease + gh release create ${{ steps.tag.outputs.release_tag }} proxy/build/libs/*-all.jar --generate-notes