From 873455fa8c93ffabd32d40e83cf6cdc5fd950293 Mon Sep 17 00:00:00 2001 From: Andrew Brock <70552043+andrewbrock-sahmri@users.noreply.github.com> Date: Tue, 16 Nov 2021 12:08:51 +1030 Subject: [PATCH] Switch to supported release action --- .github/workflows/patch-and-release-war.yml | 24 +++++---------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/patch-and-release-war.yml b/.github/workflows/patch-and-release-war.yml index 43f79f848..893b4d2e0 100644 --- a/.github/workflows/patch-and-release-war.yml +++ b/.github/workflows/patch-and-release-war.yml @@ -7,8 +7,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: read - packages: write + contents: write steps: - name: checkout xnat-web @@ -32,26 +31,13 @@ jobs: distribution: 'adopt' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file - - name: Build with Gradle run: gradle --stacktrace clean war - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + name: 1.8.2.2-ais + tag_name: Release 1.8.2.2-ais draft: false prerelease: false - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./my-artifact.zip - asset_name: my-artifact.zip - asset_content_type: application/zip + files: ./build/libs/xnat-web-*.war