-
Notifications
You must be signed in to change notification settings - Fork 289
30 lines (28 loc) · 1.09 KB
/
WebStoreDeploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Deploy to all web stores
on: workflow_dispatch
jobs:
Build_and_upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: manifest-v3
- name: Make package
run: |
npm install
node ./scripts/build.js
- name: Read commit number
id: read_commit_number
run: |
VERSION=$(jq -r '.version' manifest.json)
COMMIT_NUMBER=$(echo $VERSION | cut -d '.' -f 2)
echo "::set-output name=commit_number::$COMMIT_NUMBER"
- name: Browser Platform Publisher
uses: PlasmoHQ/[email protected]
with:
keys: ${{ secrets.BPP_KEYS }}
chrome-file: ./build/dist/FastForward_chromium_${{ steps.read_commit_number.outputs.commit_number }}.zip
edge-file: ./build/dist/FastForward_chromium_${{ steps.read_commit_number.outputs.commit_number }}.zip
firefox-file: ./build/dist/FastForward_firefox_${{ steps.read_commit_number.outputs.commit_number }}.xpi
version-file: ./build/dist/FastForward.firefox/manifest.json