Skip to content

Commit

Permalink
CI: Update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudemirovsky committed Aug 22, 2022
1 parent 96883d6 commit b6ed28a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,25 @@ jobs:
with:
arguments: assembleRelease

- name: Prepare to release
run: |
set -e
mv lib/build/outputs/aar/lib-release.aar noveltomanga-${{ github.event.inputs.tag }}.aar
sha=`sha256sum noveltomanga-${{ github.event.inputs.tag }}.aar | awk '{ print $1 }'`
echo "RELEASE_HASH=$sha" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.tag }}
name: NovelToManga ${{ github.event.inputs.tag }}
files: lib/build/outputs/aar/lib-release.aar
body: |
---
### Checksum
| Variant | SHA-256 |
| ------- | ------- |
| Release | ${{ env.RELEASE_HASH }}
files: noveltomanga-${{ github.event.inputs.tag }}.aar
draft: false
prerelease: false
env:
Expand Down

0 comments on commit b6ed28a

Please sign in to comment.