-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.04 KB
/
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
name: Build and Release DEB Package
on:
push:
jobs:
rpm-release:
name: Create DEB release
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install debuild
run: |
sudo apt-get update
sudo apt-get install -y \
dpkg-dev \
devscripts \
build-essential \
lintian \
debhelper
- name: Download the source tarball
run: |
wget -O ../nagios-plugins-ets_1.4.orig.tar.gz https://github.com/ucsd-ets/nagios-plugins-ets/archive/refs/tags/1.2.tar.gz
tar zxvf ../nagios-plugins-ets_1.4.orig.tar.gz --strip-components=1
- name: Build DEB package
run: |
debuild -us -uc
cp ../nagios-plugins-ets_1.4_amd64.deb nagios-plugins-ets_amd64.deb
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: nagios-plugins-ets_amd64.deb
path: |
nagios-plugins-ets_amd64.deb