-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 1.26 KB
/
ppa-dev.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
47
48
49
50
name: Deploy ppa package (wip)
on:
workflow_dispatch:
inputs:
wip:
description: 'Publish work in progress package.'
required: false
default: 'true'
jobs:
build_packages:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distribution: [jammy, focal, bionic]
env:
distribution: ${{ matrix.distribution }}
steps:
- name: Install prerequisites
run: |
sudo apt-get update
sudo apt-get install pbuilder pbuilder-scripts debootstrap devscripts dh-make dput dh-python
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup gpg
run: |
echo "$POTASSCO_PPA_GPGKEY" | base64 --decode | gpg --batch --import
env:
POTASSCO_PPA_GPGKEY: ${{ secrets.POTASSCO_PPA_GPGKEY }}
- name: Build deb and source package (wip)
if: ${{ github.event.inputs.wip == 'true' }}
run: |
cd .github/ppa-wip
./build.sh wip "$distribution" create sync changes build put
- name: Build deb and source package (release)
if: ${{ github.event.inputs.wip == 'false' }}
run: |
cd .github/ppa-wip
./build.sh stable "$distribution" create sync changes build put