Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build .deb packages on release | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: write | |
jobs: | |
build-bookworm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: jtdor/build-deb-action@v1 | |
with: | |
buildpackage-opts: -b -us -uc | |
docker-image: debian:bookworm-slim | |
- name: Upload | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd debian/artifacts | |
for _f in mimic*.deb; do sudo mv "$_f" "Debian-12_$_f"; done | |
gh release upload $(sed 's|refs/tags/||' <(echo ${{ github.ref }})) *.deb | |
build-noble: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: jtdor/build-deb-action@v1 | |
with: | |
buildpackage-opts: -b -us -uc | |
docker-image: ubuntu:noble | |
- name: Upload | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd debian/artifacts | |
for _f in mimic*.deb mimic*.ddeb; do sudo mv "$_f" "Ubuntu-24.04_$_f"; done | |
gh release upload $(sed 's|refs/tags/||' <(echo ${{ github.ref }})) *.deb | |