-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.16 KB
/
deploy.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
33
34
35
36
37
38
39
40
41
42
name: Deploy
on:
release:
types: [released]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 #Checkout Repo
- name: Install
run: |
npm install
mkdir external
cp node_modules/webextension-polyfill/dist/browser-polyfill.min.js external/browser-polyfill.min.js
- name: Web-ext build
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
- name: Web-ext sign
id: web-ext-sign
uses: kewisch/action-web-ext@v1
with:
cmd: sign
channel: listed
source: ${{ steps.web-ext-build.outputs.target }}
# Specify API secrets.
apiKey: ${{ secrets.JWT_ISSUER }}
apiSecret: ${{ secrets.JWT_SECRET }}
releaseNotes: ${{github.event.release.body}}
- name: "Attach release assets to release"
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ github.event.release.tag_name }} \
${{ steps.web-ext-sign.outputs.target }}