-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 998 Bytes
/
debian.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
name: Create Debian Package
on:
push:
paths:
- 'src/**'
- 'web/**'
branches:
- main
pull_request:
paths:
- 'src/**'
- 'web/**'
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install frontend dependencies
run: npm install
working-directory: web
- name: Build frontend
run: npm run build:prod
working-directory: web
- name: Create debian package
run: |
cp -r web/dist/ticket-scanner/* src/opt/gpn-badge-printer/frontend/
cp conf.json src/opt/gpn-badge-printer/files/conf.json
dpkg -b src/ gpnbp.deb
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.4.0
with:
name: debian-build
path: gpnbp.deb