forked from slgobinath/safeeyes
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1021 Bytes
/
build-deb.yml
File metadata and controls
41 lines (34 loc) · 1021 Bytes
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
name: Build Debian Package
on:
pull_request:
push:
release:
types: [published]
workflow_dispatch:
jobs:
build-deb:
name: Build Debian Package
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential python3-stdeb fakeroot dpkg-dev debhelper dh-python python3 python3-packaging python3-setuptools
- name: Build .deb package
run: |
DPKG_DEB_COMPRESSOR_TYPE=xz dpkg-buildpackage -us -uc -nc
mv ../*.deb .
- name: Upload .deb to GitHub Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: "*.deb"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Save .deb as workflow artifact
uses: actions/upload-artifact@v4
with:
name: deb-package
path: "*.deb"