diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8be76c7..a983301c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,7 @@ jobs: - name: Release for Windows if: matrix.os == 'windows-latest' env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | pnpm build:pkg @@ -46,6 +47,7 @@ jobs: - name: Release for MacOS if: matrix.os == 'macos-12' env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | pnpm build:pkg @@ -53,6 +55,7 @@ jobs: - name: Release for Linux if: matrix.os == 'ubuntu-latest' env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | pnpm build:pkg diff --git a/apps/electron/scripts/build.ts b/apps/electron/scripts/build.ts index 7e5c680a..d3090fa5 100644 --- a/apps/electron/scripts/build.ts +++ b/apps/electron/scripts/build.ts @@ -66,7 +66,12 @@ const options: Configuration = { }, target: ["AppImage", "rpm", "deb"], }, - publish: 'always' + publish: [ + { + provider: 'github', + releaseType: 'draft', + } + ] }; // 要打包的目标平台