Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Update the workflow to build a Debian package #1

Update the workflow to build a Debian package

Update the workflow to build a Debian package #1

Workflow file for this run

name: Build and Release Package
on:
push:
tags: ['v*']
jobs:
build-and-release:
runs-on: ubuntu-latest
container: debian:bookworm
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
run: |
apt-get update
apt-get install -y \
debhelper \
dh-virtualenv \
dh-make \
devscripts \
build-essential \
python3-dev \
python3-venv \
python3-pip \
git \
vim \
&& rm -rf /var/lib/apt/lists/*
- name: Build package
run: |
dpkg-buildpackage -us -uc
mkdir -p dist
mv ../*.deb dist/
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*.deb
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger APT repository update
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.APT_REPO_PAT }}
repository: hatlabs/apt.hatlabs.fi
event-type: package-updated
client-payload: |
{
"package": "${{ github.event.repository.name }}",
"version": "${{ github.ref_name }}",
"repository": "${{ github.repository }}"
}