Skip to content

Commit

Permalink
Adding write permissions to uplaod artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Srikanth Kotagiri committed Jul 8, 2024
1 parent e4c7c59 commit 5f888e1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: prebuild
on: [push]

permissions:
contents: write

jobs:
linux-package:
permissions:
contents: write
runs-on: ubuntu-24.04
container:
image: ubuntu:24.04
Expand Down Expand Up @@ -33,6 +38,8 @@ jobs:
# run: npx prebuild --runtime napi --arch arm64 --include-regex '(\.node|\.dylib|ffmpeg|ffprobe)$' --upload ${{ secrets.GITHUB_TOKEN }}

package:
permissions:
contents: write
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -61,7 +68,6 @@ jobs:
env:
PREBUILD: true


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

# - name: prebuild Debug for macOS (x64)
# run: npx prebuild --debug --runtime napi --arch x64 --include-regex '(\.node|\.dylib|ffmpeg|ffprobe)$' --upload ${{ secrets.GITHUB_TOKEN }}
# if: ${{ runner.os == 'macOS'}}

- name: clean build directory for cross-compiling
run: rm ./build/Release/*.dylib || true
if: ${{ runner.os == 'macOS'}}
Expand Down

0 comments on commit 5f888e1

Please sign in to comment.