diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-29 02:49:03 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-29 02:49:03 +0300 |
commit | 5237e305c04a604f0427d43cbafe926188ef5470 (patch) | |
tree | c2115af66bbbf42363cb42319651e770e0ac58e8 /.github | |
parent | add Debian packaging files (diff) | |
download | config-links-5237e305c04a604f0427d43cbafe926188ef5470.tar.gz config-links-5237e305c04a604f0427d43cbafe926188ef5470.zip |
debian: add GitHub workflows
Again, copied from linux-status.
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/debian.yml | 26 | ||||
-rw-r--r-- | .github/workflows/ppa.yml | 30 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml new file mode 100644 index 0000000..1919048 --- /dev/null +++ b/.github/workflows/debian.yml @@ -0,0 +1,26 @@ +name: Packages (Debian) + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + name: Binary package + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Install dependencies + run: cd debian && sudo make deps + - name: Build binary package + run: cd debian && make bin/test + - name: Upload binary package + uses: actions/upload-artifact@v2 + with: + name: build-area + path: debian/build-area/ + if-no-files-found: error diff --git a/.github/workflows/ppa.yml b/.github/workflows/ppa.yml new file mode 100644 index 0000000..afc7790 --- /dev/null +++ b/.github/workflows/ppa.yml @@ -0,0 +1,30 @@ +name: Publish (Launchpad) + +on: + push: + tags: 'debian/*' + +jobs: + test: + runs-on: ubuntu-latest + name: Upload to PPA + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v3 + with: + gpg-private-key: '${{ secrets.GPG_PRIVATE_KEY }}' + passphrase: '${{ secrets.GPG_PASSPHRASE }}' + - name: Install dependencies + run: cd debian && sudo make deps + - name: Create cowbuilder image + run: cd debian && sudo make dist/create + - name: Build binary package + run: cd debian && make dist + - name: Build source package + run: cd debian && make clean && make src + - name: Upload to PPA + run: cd debian && make upload |