-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (28 loc) · 1012 Bytes
/
main.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
31
name: Publish to Chrome store
on:
push:
branches:
- main
jobs:
build:
name: Publish to Chrome store
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
- name: Build
run: |
npm ci
npm run pub-ci
- name: Install the webstore-upload-cli
run: |
npm install chrome-webstore-upload-cli
pwd
- name: Upload
run: |
./node_modules/chrome-webstore-upload-cli/cli.js upload --source build.zip --extension-id ckncjmaednfephhbpeookmknhmjjodcd --client-id ${{ secrets.CLIENT_ID }} --client-secret ${{ secrets.CLIENT_SECRET }} --refresh-token ${{ secrets.REFRESH_TOKEN }}
- name: Publish
run: |
./node_modules/chrome-webstore-upload-cli/cli.js publish --extension-id ckncjmaednfephhbpeookmknhmjjodcd --client-id ${{ secrets.CLIENT_ID }} --client-secret ${{ secrets.CLIENT_SECRET }} --refresh-token ${{ secrets.REFRESH_TOKEN }}