aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/.github/workflows/ppa.yml
blob: 921d6262278a8a12cd5b86ea990fb0bb39458e61 (plain) (tree)
1
2
3
4
5
6
                         


       

                    






                          
                                 


                            
                                              
             
                                                           
                                                     
                                  
                                     
                                     
                                            
                                  


                                  
                                  
                               
                           
                                                                                      
                                  
name: Publish (Launchpad)

on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    name: Upload to PPA
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Import GPG key
        uses: crazy-max/ghaction-import-gpg@v5
        with:
          gpg_private_key: '${{ secrets.GPG_PRIVATE_KEY }}'
          passphrase: '${{ secrets.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: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/debian/')
        run: make -C debian upload