summaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/ppa.yml
blob: 47ba309680be51a320e610d5f3d24f6fd65aca56 (plain) (blame)
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
name: Publish (Launchpad)

on:
  push:
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    name: Upload to PPA
    steps:
      - name: Checkout
        uses: actions/checkout@v7
        with:
          # Fetch tags, required for gbp.
          fetch-depth: 0
          persist-credentials: false
          submodules: recursive
      - name: Import GPG key
        uses: crazy-max/ghaction-import-gpg@v7
        with:
          gpg_private_key: ${{ secrets.LAUNCHPAD_GPG_KEY }}
          passphrase: ${{ secrets.LAUNCHPAD_GPG_PASSPHRASE }}
      - name: Install dependencies
        run: sudo make -C debian deps
      - name: Create cowbuilder image
        run: sudo make -C debian dist/create
      - name: Build binary package
        run: make -C debian dist
      - name: Clean the build area
        run: make -C debian clean
      - name: Build source package
        run: make -C debian src
      - name: Upload to PPA
        if: startsWith(github.ref, 'refs/tags/debian/')
        run: make -C debian upload