Skip to content

Commit

Permalink
* remove set-output, use $GITHUB_OUTPUT instead
Browse files Browse the repository at this point in the history
* use action-gh-release
  • Loading branch information
aesteve committed Aug 31, 2023
1 parent 32d536f commit 9d58259
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Get Project version
id: get_version
run: echo ::set-output name=VERSION::$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')
run: echo VERSION=$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}') >> "$GITHUB_OUTPUT"

- name: Decode
run: |
Expand All @@ -37,12 +37,11 @@ jobs:
arguments: assemble publish -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}} -Psigning.secretKeyRingFile=/tmp/secring.gpg -PossrhUsername=${{secrets.SONATYPE_NEXUS_USERNAME}} -PossrhPassword=${{secrets.SONATYPE_NEXUS_PASSWORD}} --stacktrace

- name: Create Release in Github
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: ${{ steps.get_version.outputs.VERSION }}
name: ${{ steps.get_version.outputs.VERSION }}
generate_release_notes: true
body: |
Available in Sonatype SNAPSHOTs repository under:
`io.reactiverse:aws-sdk:${{ steps.get_version.outputs.VERSION }}`
Expand Down

0 comments on commit 9d58259

Please sign in to comment.