Skip to content

Commit df303fb

Browse files
committed
Update build.yml
1 parent 10caacf commit df303fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# Build for Windows without publishing
3838
npx electron-builder --win nsis -p never
3939
env:
40-
GH_TOKEN: ${{ secrets.GH_TOKEN }} # Use your GitHub token with write permissions
40+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4141

4242
- name: Upload Release Assets
4343
uses: ncipollo/release-action@v1
@@ -46,8 +46,8 @@ jobs:
4646
name: 'TheCyberHUB Desktop Release v${{ github.run_number }}'
4747
artifacts: |
4848
dist/*.exe
49-
env:
50-
GH_TOKEN: ${{ secrets.GH_TOKEN }} # Ensure this token has the necessary permissions
49+
token: ${{ secrets.GH_TOKEN }} # Use your PAT here
50+
skipIfReleaseExists: true # Skip if the release already exists
5151

5252
# Optional: Clean up after the build
5353
- name: Cleanup

0 commit comments

Comments
 (0)