Skip to content

Commit

Permalink
Update action for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Jul 30, 2024
1 parent b3f6d0d commit 2aca4c5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
name: 'Submit to Web Store'

#Documentation for secrets: https://github.com/PlasmoHQ/bms/blob/main/tokens.md

on:
workflow_dispatch:

jobs:
build:
main:
name: Build and publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up pNPM
uses: pnpm/action-setup@v3
with:
version: latest
run_install: true
- name: Use Node.js 16.x
uses: actions/[email protected]

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18
cache: 'pnpm'
- name: Build extension
run: pnpm build
- name: Zip extension artifact
run: pnpm package
- name: Browser Platform Publish

- name: Build and package extension
run: pnpm build --target=chrome-mv3 --zip && pnpm build --target=firefox-mv3 --zip

- name: Publish extension
uses: PlasmoHQ/bpp@v3
with:
keys: ${{ secrets.SUBMIT_KEYS }}
artifact: build/chrome-mv3-prod.zip
chrome-artifact: build/chrome-mv3-prod.zip
firefox-artifact: build/firefox-mv3-prod.zip
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sk.edge",
"displayName": "sk.edge",
"version": "0.0.1",
"version": "0.0.2",
"description": "your registration assistant by students, for students",
"author": "Nebula Labs",
"packageManager": "[email protected]",
Expand Down

0 comments on commit 2aca4c5

Please sign in to comment.