Skip to content

Commit

Permalink
Add workflow to build .deb packages (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmhewitt authored Jan 22, 2021
1 parent 745ea77 commit 0ce1fc2
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---

name: Build .deb

on:
- workflow_dispatch
- pull_request

jobs:
build-deb:
runs-on: ubuntu-latest

container:
image: elementary/docker:odin-unstable

steps:
- name: Install dependencies
run: |
apt update
apt install -y git
- name: Checkout main
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Checkout debian packaging folder
run: git checkout origin/deb-packaging -- debian

- name: Install build dependencies
run: |
apt-get --no-install-recommends -qq build-dep .
- name: Build .deb package
run: |
dpkg-buildpackage -us -uc
mkdir output
cp ../*.deb output/
- name: Save .deb package
uses: actions/upload-artifact@v2
with:
name: deb-files
path: output/*.deb

0 comments on commit 0ce1fc2

Please sign in to comment.