diff --git a/.github/workflows/tarball.yml b/.github/workflows/tarball.yml index 93577d7..5957667 100644 --- a/.github/workflows/tarball.yml +++ b/.github/workflows/tarball.yml @@ -21,9 +21,19 @@ jobs: ./ outPath: test.tar.gz - - name: Add Test Report to Release - uses: irongut/EditRelease@v1.2.0 + - name: Get release + id: get_release + uses: bruceadams/get-release@v1.3.2 + env: + GITHUB_TOKEN: ${{ secrets.TOKEN }} + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.TOKEN }} with: - token: "${{ secrets.TOKEN }}" - id: ${{ github.event.release.id }} - files: "test.tar.gz" + 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