-
Notifications
You must be signed in to change notification settings - Fork 225
38 lines (35 loc) · 1.15 KB
/
debug-gpg.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
name: debug gpg
on: [push, pull_request]
jobs:
do-it:
runs-on: ubuntu-latest
steps:
- name: Clone the repositories
run: |
git clone https://github.com/canonical/dqlite
git clone https://github.com/canonical/dqlite-ppa -b dqlite --depth 1
- name: Setup dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq debhelper devscripts gnupg
- name: Generate dummy key
run: |
echo $(tty)
gpg --batch --pinentry-mode loopback --passphrase '' --quick-generate-key 'nobody <[email protected]>'
- name: Build source package
env:
DEBFULLNAME: "nobody"
DEBEMAIL: "[email protected]"
TARGET: noble
run: |
cp -R dqlite-ppa/debian dqlite/
cd dqlite/
VERSION="$(git describe --tags | sed -e "s/^v//" -e "s/-/+git/")"
dch --create \
--distribution ${TARGET} \
--package dqlite \
--newversion ${VERSION}~${TARGET}1 \
"Automatic build from Github"
debuild --no-lintian -S -sa -d -us -uc
ls
debsign -m nobody *.changes