Skip to content

Commit 5f888e1

Browse files
author
Srikanth Kotagiri
committed
Adding write permissions to uplaod artifacts
1 parent e4c7c59 commit 5f888e1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/prebuild.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: prebuild
22
on: [push]
33

4+
permissions:
5+
contents: write
6+
47
jobs:
58
linux-package:
9+
permissions:
10+
contents: write
611
runs-on: ubuntu-24.04
712
container:
813
image: ubuntu:24.04
@@ -33,6 +38,8 @@ jobs:
3338
# run: npx prebuild --runtime napi --arch arm64 --include-regex '(\.node|\.dylib|ffmpeg|ffprobe)$' --upload ${{ secrets.GITHUB_TOKEN }}
3439

3540
package:
41+
permissions:
42+
contents: write
3643
runs-on: ${{ matrix.os }}
3744
strategy:
3845
fail-fast: false
@@ -61,7 +68,6 @@ jobs:
6168
env:
6269
PREBUILD: true
6370

64-
6571
- name: install Mac dependencies (shared release x64)
6672
run: node ./install_ffmpeg.js --arch x64
6773
if: ${{ runner.os == 'macOS'}}
@@ -78,10 +84,6 @@ jobs:
7884
run: npx prebuild --runtime napi --arch x64 --include-regex '(\.node|\.dylib|ffmpeg|ffprobe)$' --verbose --upload ${{ secrets.GITHUB_TOKEN }}
7985
if: ${{ runner.os == 'macOS'}}
8086

81-
# - name: prebuild Debug for macOS (x64)
82-
# run: npx prebuild --debug --runtime napi --arch x64 --include-regex '(\.node|\.dylib|ffmpeg|ffprobe)$' --upload ${{ secrets.GITHUB_TOKEN }}
83-
# if: ${{ runner.os == 'macOS'}}
84-
8587
- name: clean build directory for cross-compiling
8688
run: rm ./build/Release/*.dylib || true
8789
if: ${{ runner.os == 'macOS'}}

0 commit comments

Comments
 (0)