-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1afabdf
commit 50e7ed2
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,19 +21,21 @@ jobs: | |
./ | ||
outPath: test.tar.gz | ||
|
||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
- name: Generate checksum | ||
uses: jmgilman/actions-generate-checksum@v1 | ||
with: | ||
method: md5 | ||
output: md5.txt | ||
patterns: ./*.tar.gz | ||
|
||
- name: Read md5 checksum file | ||
id: getmd5 | ||
run: echo "::set-output name=md5::$(cat md5.txt)" | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
- name: Edit Release | ||
uses: irongut/[email protected] | ||
with: | ||
upload_url: ${{ steps.get_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: ./test.tar.gz | ||
asset_name: test.tar.gz | ||
asset_content_type: application/zip | ||
token: ${{ secrets.TOKEN }} | ||
id: ${{ github.event.release.id }} | ||
body: v${{ steps.getversion.outputs.md5 }} | ||
files: "test.tar.gz" |