-
-
Notifications
You must be signed in to change notification settings - Fork 50
46 lines (36 loc) · 990 Bytes
/
build-deb.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: Build .deb
on:
- workflow_dispatch
- pull_request
jobs:
build-deb:
runs-on: ubuntu-latest
container:
image: ghcr.io/elementary/docker:development-target
steps:
- name: Install dependencies
run: |
apt update
apt install -y git
- name: Checkout main
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout debian packaging folder
run: |
git config --global --add safe.directory /__w/installer/installer
git checkout origin/deb-packaging -- debian
- name: Install build dependencies
run: |
apt-get --no-install-recommends -qq build-dep .
- name: Build .deb package
run: |
dpkg-buildpackage -us -uc
mkdir output
cp ../*.deb output/
- name: Save .deb package
uses: actions/upload-artifact@v4
with:
name: deb-files
path: output/*.deb