Skip to content

Commit

Permalink
Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TetraTsunami committed May 22, 2024
1 parent cf088e8 commit 0a06d6d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/submit.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: "Submit to Web Store"
name: "Build"

on:
workflow_dispatch:
push:
branches:
- master

jobs:
build:
Expand All @@ -25,10 +28,10 @@ jobs:
cache: "pnpm"
- name: Build the extension
run: pnpm build
- name: Package the extension into a zip artifact
- name: Package the extension into zip artifacts
run: pnpm package
- name: Browser Platform Publish
uses: PlasmoHQ/bpp@v3
- name: Upload the artifacts
uses: actions/upload-artifact@v4
with:
keys: ${{ secrets.SUBMIT_KEYS }}
artifact: build/chrome-mv3-prod.zip
name: extension
path: dist/*.zip
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"dev-chrome": "plasmo dev",
"dev": "plasmo dev --target=firefox-mv2",
"build": "plasmo build",
"package": "plasmo package"
"build": "plasmo build && plasmo build --target=firefox-mv2",
"package": "plasmo build && plasmo package --target=firefox-mv2"
},
"dependencies": {
"@mozilla/readability": "^0.5.0",
Expand Down Expand Up @@ -42,7 +42,7 @@
},
"browser_specific_settings": {
"gecko": {
"id": "$FIREFOX_EXT_ID"
"id": "[email protected]"
}
}
}
Expand Down

0 comments on commit 0a06d6d

Please sign in to comment.