-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1.1 KB
/
package.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
name: "Build and ship package"
on:
push:
tags:
- "v*"
branches:
- "fix-ga-build"
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: "Use appropriate Node.js"
uses: "actions/setup-node@v3"
with:
node-version: "17.0.1"
cache: 'npm'
- run: "sudo apt install pcscd libpcsclite1 libpcsclite-dev openssl"
# Install packages, rebuild using electron
- run: "npm install"
- run: "npm install @pokusew/pcsclite openssl_fips --build-from-source"
- run: "./node_modules/.bin/electron-rebuild"
- run: "npm run build"
- name: "Upload package"
uses: "actions/upload-artifact@v2"
with:
name: "package"
path: "dist/installers/*.deb"
- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
draft: false
prerelease: false
generate_release_notes: true
files: |
dist/installers/*.deb