diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ff73003..eadc95a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,8 @@ on: branches: - main +permissions: write-all + jobs: build-linux: if: ${{ startsWith(github.event.head_commit.message, 'build:') }} @@ -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: @@ -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: @@ -66,4 +68,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }} - path: dist \ No newline at end of file + path: dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dd886aa..20abf3fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 @@ -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