Skip to content

Commit 77b0fbc

Browse files
committed
ci(debian): build and release debian packages using Github Actions.
1 parent fe93a29 commit 77b0fbc

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/build.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Build
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the sasquatch branch
8+
push:
9+
branches:
10+
- master
11+
pull_request:
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
build_amd64:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Build Debian package (AMD64)
23+
uses: dawidd6/[email protected]
24+
with:
25+
os_distribution: bullseye
26+
cpu_architecture: amd64
27+
- name: Upload DEB artifacts
28+
uses: actions/upload-artifact@v2
29+
with:
30+
path: ${{ github.workspace }}/*.deb

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build_amd64:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Build Debian package (AMD64)
14+
uses: dawidd6/[email protected]
15+
with:
16+
os_distribution: bullseye
17+
cpu_architecture: amd64
18+
- name: Release
19+
uses: softprops/action-gh-release@v1
20+
with:
21+
files: ${{ github.workspace }}/*.deb

0 commit comments

Comments
 (0)