✨ 增强截图和 OPFS 能力:区域截图、saveTo 持久化、bloburl 读取 #1150
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| - feature/* | |
| - dev | |
| paths-ignore: | |
| - ".github/**" | |
| - ".gitignore" | |
| - "**.md" | |
| - "LICENSE" | |
| workflow_dispatch: | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| name: Build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "pnpm" | |
| - name: Package with Node | |
| env: | |
| CHROME_PEM: ${{ secrets.CHROME_PEM }} | |
| run: | | |
| mkdir dist | |
| echo "$CHROME_PEM" > ./dist/scriptcat.pem | |
| chmod 600 ./dist/scriptcat.pem | |
| pnpm i --frozen-lockfile | |
| pnpm run pack | |
| - name: Archive production artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: production-artifacts | |
| path: | | |
| dist/*.crx | |
| dist/*.zip | |
| - name: Archive extension | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: scriptcat-chrome-extension | |
| path: | | |
| dist/ext/* |