diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 181ff12..d8ca341 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,8 +25,8 @@ jobs: cache: "pnpm" - name: Build the extension run: | - pnpm build --target=chrome-mv3 - pnpm build --target=firefox-mv2 + pnpm build --target=chrome-mv3 --zip + pnpm build --target=firefox-mv2 --zip - name: Browser Platform Publish uses: PlasmoHQ/bpp@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8d69fa..9c80c94 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,10 +40,8 @@ jobs: cache: "pnpm" - name: Build the extension run: | - pnpm build --target=chrome-mv3 - pnpm build --target=firefox-mv2 - mkdir -p build/zip - mv build/*.zip build/zip + pnpm build --target=chrome-mv3 --zip + pnpm build --target=firefox-mv2 --zip - uses: monkeyWie/get-latest-release@v2.1 id: get-release with: @@ -52,5 +50,5 @@ jobs: uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ steps.get-release.outputs.upload_url }} - asset_path: build/zip/* + asset_path: build/*.zip overwrite: true