summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-01-12 20:09:07 -0800
committerGitHub <noreply@github.com>2022-01-12 20:09:07 -0800
commite1006767100084a40b1ef09f60eadc807a549ed3 (patch)
tree5290fc605bd9766207d001250dd2ee32d185475f /.github
parentf33af3e373cc90714a3a96204ef59492c30b55ea (diff)
downloadwabt-e1006767100084a40b1ef09f60eadc807a549ed3.tar.gz
wabt-e1006767100084a40b1ef09f60eadc807a549ed3.tar.bz2
wabt-e1006767100084a40b1ef09f60eadc807a549ed3.zip
Update github action used to publish releases. NFC (#1804)
It seems that the action we were using is not longer working: https://github.com/actions/upload-release-asset See https://github.com/WebAssembly/binaryen/pull/4148
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_release.yml23
-rw-r--r--.github/workflows/build_source_release.yml23
2 files changed, 22 insertions, 24 deletions
diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml
index 5efb7273..1c75638e 100644
--- a/.github/workflows/build_release.yml
+++ b/.github/workflows/build_release.yml
@@ -6,6 +6,9 @@ on:
types:
- created
+permissions:
+ contents: write
+
jobs:
build:
name: build
@@ -70,21 +73,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 }}
diff --git a/.github/workflows/build_source_release.yml b/.github/workflows/build_source_release.yml
index b5003254..7b0d753a 100644
--- a/.github/workflows/build_source_release.yml
+++ b/.github/workflows/build_source_release.yml
@@ -6,6 +6,9 @@ on:
types:
- created
+permissions:
+ contents: write
+
jobs:
build:
name: build
@@ -35,21 +38,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 }}