-
Notifications
You must be signed in to change notification settings - Fork 147
45 lines (40 loc) · 930 Bytes
/
build.yaml
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
name: build
on:
push:
branches:
- main
- release/*
- dev
jobs:
build-deploy:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Package with Node
env:
CHROME_PEM: ${{ secrets.CHROME_PEM }}
run: |
mkdir dist
echo "$CHROME_PEM" > ./dist/scriptcat.pem
chmod 600 ./dist/scriptcat.pem
npm ci
npm run pack
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: all-artifacts
path: |
dist/*.zip
dist/*.crx
- name: Archive extension
uses: actions/upload-artifact@v3
with:
name: scriptcat
path: |
dist/ext/*