From 226b86cf471c588875d59411a557b26fac7ae737 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Fri, 3 Feb 2023 10:47:25 +0100 Subject: [PATCH] Replace deprecated actions/create-release action by softprops/action-gh-release (cherry picked from commit 23e221df1b9f3b2f0b3d6f361a88b375b552b669) --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8fbfb0..cf8004f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,11 +30,9 @@ jobs: name: artifacts path: target/*.jar - name: Create Release - uses: actions/create-release@v1 #NOTE: action is not maintained and repo is archived + uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') - env: - GITHUB_TOKEN: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} # release as "cryptobot" with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - prerelease: true \ No newline at end of file + prerelease: true + token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} + generate_release_notes: true \ No newline at end of file