-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.24 KB
/
release-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
name: Build debian package
on:
release:
types:
- published
env:
DEBIAN_FRONTEND: noninteractive
jobs:
debian-package:
name: "Build debian package"
runs-on: ubuntu-latest
environment:
name: "release"
container:
image: "debian:latest"
steps:
- name: Install dependencies
run: |
apt-get update
apt-get -y upgrade
apt-get -y install devscripts dpkg-dev debhelper equivs
- name: Checkout repo
uses: actions/checkout@v4
- name: Bump version
run: |
export DEBEMAIL='[email protected]'
export DEBFULLNAME='Faucet Maintainers'
debchange --newversion ${{ github.event.release.tag_name }} -b "New upstream release"
- name: Build package
run: |
mk-build-deps -i -r -t 'apt-get -f -y --force-yes'
dpkg-buildpackage -b -us -uc -rfakeroot
- name: Store package
run: |
mkdir -p packages/all
cp ../*.deb packages/all
- name: Publish package on packagecloud
uses: faucetsdn/action-packagecloud-upload-debian-packages@v1
with:
path: packages/
repo: faucetsdn/faucet-test
token: ${{ secrets.PACKAGECLOUD_TOKEN }}