Skip to content

Commit 6b64674

Browse files
committed
Modified permissions
1 parent 6f57424 commit 6b64674

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
run: 'choco install wget -y'
3838

3939
- name: Restore cached libbinaryen
40+
if: runner.os != 'Linux'
4041
id: cache-libbinaryen-restore
4142
uses: actions/cache/restore@v4
4243
with:
@@ -49,7 +50,7 @@ jobs:
4950
- name: Cache libbinaryen
5051
id: cache-libbinaryen-save
5152
uses: actions/cache/save@v4
52-
if: steps.cache-libbinaryen-restore.outputs.cache-hit != 'true'
53+
if: ${{steps.cache-libbinaryen-restore.outputs.cache-hit != 'true' && runner.os != 'Linux'}}
5354
with:
5455
path: ./binaryen/libbinaryen
5556
key: ${{steps.cache-libbinaryen-restore.outputs.cache-primary-key}}
@@ -77,8 +78,11 @@ jobs:
7778
path: dist/*.tar.gz
7879

7980
create_release:
81+
name: Create Release
8082
needs: [build_wheels, build_sdist]
8183
runs-on: ubuntu-latest
84+
permissions:
85+
contents: write
8286
steps:
8387
- uses: actions/download-artifact@v4
8488
with:
@@ -87,7 +91,7 @@ jobs:
8791
merge-multiple: true
8892
- name: Create Release
8993
uses: softprops/action-gh-release@v1
90-
# if: startsWith(github.ref, 'refs/tags/')
94+
if: startsWith(github.ref, 'refs/tags/')
9195
with:
9296
draft: true
9397
files: dist/*

0 commit comments

Comments
 (0)