Skip to content

Commit db491ff

Browse files
committed
change the scope of github token
1 parent 799d834 commit db491ff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- 'master'
99
workflow_dispatch:
1010

11+
env:
12+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
1114
jobs:
1215
build-release:
1316
name: Build and release the Electron App
@@ -38,14 +41,10 @@ jobs:
3841
3942
- name: Distribute Mac OS X and Windows binaries
4043
if: ${{ matrix.os == 'macos-latest' }}
41-
with:
42-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4344
run: |
4445
npm run dist -- --mac --win
4546
4647
- name: Distribute Linux binaries
4748
if: ${{ matrix.os == 'ubuntu-latest' }}
48-
with:
49-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5049
run: |
5150
npm run dist

0 commit comments

Comments
 (0)