forked from NUWCDIVNPT/stigman-watcher
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (50 loc) · 1.44 KB
/
build-binary-artifacts.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
name: Build Binary Artifacts
on:
workflow_dispatch:
push:
branches:
- main
- build-workflow
paths:
- 'lib/**'
- 'index.js'
- 'build.sh'
- '.github/workflows/build-binary-artifacts.yml'
jobs:
build-binary-artifacts-and-sign:
name: Build binary artifacts, sign, export
runs-on: ubuntu-latest
steps:
- name: Install Script Dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq zip tar gpg
npm install -g pkg
- name: Check out the repo
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
- name: Import GPG Key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549
with:
gpg_private_key: ${{ secrets.WATCHER_PRIVATE_KEY }}
passphrase: ${{ secrets.WATCHER_PRIVATE_KEY_PASSPHRASE }}
- name: List keys
run: gpg -K
- name: run build script and sign
id: run-build-script-and-sign
run: ./build.sh --sign
- name: Upload Windows artifact
uses: actions/upload-artifact@v3
with:
name: windows-artifacts
path: ./dist/*.zip
if-no-files-found: error
- name: Upload Linux artifact
uses: actions/upload-artifact@v3
with:
name: linux-artifacts
path: ./dist/*.tar.gz
if-no-files-found: error