-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (29 loc) · 889 Bytes
/
publish.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
32
name: Publish
on:
push:
tags:
- v**
jobs:
build:
name: Publish webextension
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Install
run: npm ci
- name: Test
run: npm t
- name: Build
run: npm run release
- name: Upload & release
uses: mnao305/chrome-extension-upload@5.0.0
with:
file-path: releases/*.zip
glob: true
extension-id: ${{ secrets.EXTENSION_ID }}
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
refresh-token: ${{ secrets.REFRESH_TOKEN }}