-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (37 loc) · 1.11 KB
/
create-release.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
43
name: "Release"
on:
push:
tags:
- "*.*.*"
jobs:
release:
name: "Release"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v1
- name: "NPM Install"
run: npm install
- name: "Compile"
run: npm run compile:prod
- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@a28b4ba2f491cc36c67a714a716ca54218440056
with:
cmd: build
source: ext
- name: "web-ext sign"
id: web-ext-sign
uses: kewisch/action-web-ext@a28b4ba2f491cc36c67a714a716ca54218440056
with:
cmd: sign
source: ${{ steps.web-ext-build.outputs.target }}
channel: listed
apiKey: ${{ secrets.FIREFOX_API_KEY }}
apiSecret: ${{ secrets.FIREFOX_API_SECRET }}
- name: "Create Release"
uses: softprops/action-gh-release@810bfa2cd5f7c2bd4138fa75005d437ba562db81
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ steps.web-ext-sign.outputs.target || steps.web-ext-build.outputs.target }}