From 50e7ed213843285480a6e64d925ba7318456bad3 Mon Sep 17 00:00:00 2001 From: Joshua Date: Sun, 21 May 2023 22:55:55 -0700 Subject: [PATCH] Update tarball.yml --- .github/workflows/tarball.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tarball.yml b/.github/workflows/tarball.yml index 5957667..8c0ff52 100644 --- a/.github/workflows/tarball.yml +++ b/.github/workflows/tarball.yml @@ -21,19 +21,21 @@ jobs: ./ outPath: test.tar.gz - - name: Get release - id: get_release - uses: bruceadams/get-release@v1.3.2 - 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/EditRelease@v1.2.0 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"