Skip to content

Commit

Permalink
Switch to supported release action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbrock-sahmri authored Nov 16, 2021
1 parent 9466904 commit 873455f
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/patch-and-release-war.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
contents: write

steps:
- name: checkout xnat-web
Expand All @@ -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

0 comments on commit 873455f

Please sign in to comment.