Skip to content

Commit

Permalink
Update github action used to publish releases. NFC
Browse files Browse the repository at this point in the history
It seems that the action we were using is not longer working:
https://github.com/actions/upload-release-asset

See WebAssembly/binaryen#4148
  • Loading branch information
sbc100 committed Jan 12, 2022
1 parent f33af3e commit 97c146c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,17 @@ jobs:
echo "::set-output name=shasum::$SHASUM"
- name: upload tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ steps.archive.outputs.tarball }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./${{ steps.archive.outputs.tarball }}
asset_name: ${{ steps.archive.outputs.tarball }}
asset_content_type: application/gzip
tag: ${{ github.ref }}

- name: upload shasum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ steps.archive.outputs.shasum }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./${{ steps.archive.outputs.shasum }}
asset_name: ${{ steps.archive.outputs.shasum }}
asset_content_type: text/plain
tag: ${{ github.ref }}
18 changes: 6 additions & 12 deletions .github/workflows/build_source_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,15 @@ jobs:
echo "::set-output name=shasum::$SHASUM"
- name: upload tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ steps.archive.outputs.tarball }}
file: ./${{ steps.archive.outputs.tarball }}
asset_name: ${{ steps.archive.outputs.tarball }}
asset_content_type: application/gzip
tag: ${{ github.ref }}

- name: upload shasum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ steps.archive.outputs.shasum }}
file: ./${{ steps.archive.outputs.shasum }}
asset_name: ${{ steps.archive.outputs.shasum }}
asset_content_type: text/plain
tag: ${{ github.ref }}

0 comments on commit 97c146c

Please sign in to comment.