Skip to content

Commit

Permalink
fix(ci): grant write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jxlpzqc committed Nov 5, 2024
1 parent f7b9a26 commit 98803ac
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-win-x64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- 'v*'
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: windows-latest
Expand Down Expand Up @@ -44,11 +47,12 @@ jobs:
with:
name: TMSpeech.win-x64
path: app
- name: Create ZIP
run: Compress-Archive -Path app/* -DestinationPath TMSpeech.win-x64.zip

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: app/**
files: |
TMSPeech.win-x64.zip
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 98803ac

Please sign in to comment.