-
Notifications
You must be signed in to change notification settings - Fork 102
58 lines (49 loc) · 1.26 KB
/
ppa-upload.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
51
52
53
54
55
56
57
58
name: PPA Upload
on:
push:
branches:
- main
- release/[0-9]+.[0-9]+
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
PPAUpload:
strategy:
fail-fast: true
matrix:
release:
- "22.04"
- "22.10"
- "23.04"
- "devel"
runs-on: ubuntu-latest
env:
DEBFULLNAME: "Mir CI Bot"
DEBEMAIL: "mir-ci-bot@canonical.com"
steps:
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.MIR_BOT_GPG_PRIVATE_KEY }}
- name: Check out code
uses: actions/checkout@v3
with:
# Need full history for version determination
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get install --no-install-recommends --yes \
debhelper \
devscripts \
dput \
dh-python \
python3-launchpadlib
- name: Set up Launchpad credentials
uses: DamianReeves/write-file-action@v1.0
with:
path: ${{ github.workspace }}/../lp_credentials
contents: ${{ secrets.LAUNCHPAD_CREDENTIALS }}
- name: Upload to PPA
env:
RELEASE: ${{ matrix.release }}
run: tools/ppa-upload.sh ${{ github.workspace }}/../lp_credentials