Skip to content

Commit

Permalink
chore: change action token
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuchen committed Apr 17, 2024
1 parent fafc593 commit d7d2b06
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- main

permissions: write-all

jobs:
build-linux:
if: ${{ startsWith(github.event.head_commit.message, 'build:') }}
Expand All @@ -19,7 +21,7 @@ jobs:
with:
repository: 'NapNeko/NapCatQQ'
submodules: true
token: ${{ secrets.NAPCAT_BUILD }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js 20.X
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -50,7 +52,7 @@ jobs:
with:
repository: 'NapNeko/NapCatQQ'
submodules: true
token: ${{ secrets.NAPCAT_BUILD }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js 20.X
uses: actions/setup-node@v4
with:
Expand All @@ -66,4 +68,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }}
path: dist
path: dist
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
repository: 'NapNeko/NapCatQQ'
submodules: true
ref: main
token: ${{ secrets.NAPCAT_BUILD }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js 20.X
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
repository: 'NapNeko/NapCatQQ'
submodules: true
ref: main
token: ${{ secrets.NAPCAT_BUILD }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Use Node.js 20.X
uses: actions/setup-node@v4
Expand Down Expand Up @@ -120,11 +120,11 @@ jobs:
uses: softprops/action-gh-release@v1
with:
name: NapCat V${{ env.VERSION }}
token: ${{ secrets.NAPCAT_BUILD }}
token: ${{ secrets.GITHUB_TOKEN }}
files: |
NapCat.win32.x64.zip
NapCat.linux.x64.zip
NapCat.linux.arm64.zip
NapCat.darwin.x64.zip
NapCat.darwin.arm64.zip
# NapCat.darwin.x64.zip
# NapCat.darwin.arm64.zip
draft: true

0 comments on commit d7d2b06

Please sign in to comment.