forked from new-xkit/XKit
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 1.49 KB
/
web-ext.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Web-Ext Tasks
on: workflow_dispatch
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Lint WebExtension
run: npm run lint
build:
name: Build
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Build WebExtension
run: npm run build
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: web-ext-artifacts
sign:
name: Sign
if: github.repository == 'new-xkit/XKit'
needs: [lint, build]
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Sign WebExtension
run: npm run sign
env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: sign
path: web-ext-artifacts