Submit to Web Store #20
Workflow file for this run
This file contains 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: 'Submit to Web Store' | |
#Documentation for secrets: https://github.com/PlasmoHQ/bms/blob/main/tokens.md | |
#There is already an existing google cloud console project that the chrome keys were generated from | |
#The secrets are linked to my [email protected] email since it is a developer account and has access on both chrome and firefox | |
on: | |
workflow_dispatch: | |
#This could run on each push to main but it would only work like once a day for chrome | |
#Chrome won't allow submitting another package when one is in review | |
jobs: | |
main: | |
name: Build and publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install packages | |
run: npm ci | |
- name: Build and package extension | |
run: npm run build:chrome && npm run build:firefox | |
- name: Publish extension | |
uses: PlasmoHQ/bpp@v3 | |
with: | |
keys: ${{ secrets.SUBMIT_KEYS }} | |
chrome-file: build/chrome-mv3-prod.zip | |
firefox-file: build/firefox-mv3-prod.zip |