Build Debian package on release #15
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 Debian package on release | |
on: | |
push: | |
branches: [ feat-create-debian-package-with-tag ] | |
paths-ignore: | |
- 'docs_src/**' | |
- 'README.md' | |
- 'CITATION' | |
- 'book.toml' | |
- 'CONTRIBUTING.md' | |
tags: [ 'v*.*.*', 'dev*.*.*', 'feat-*' ] | |
workflow_dispatch: | |
jobs: | |
create_debian_pkg_with_tag: | |
name: Create Debian package associated to version tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout scaphandre repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get latest tag of scaphandre repository | |
id: latest-scaphandre-tag | |
uses: "WyriHaximus/[email protected]" | |
with: | |
fallback: dev0.5.18 | |
- name: Checkout scaphandre-debian repository | |
uses: actions/checkout@v4 | |
with: | |
repository: hubblo-org/scaphandre-debian | |
- name: Build package with version tag and Debian 11 Bullseye | |
run : | | |
./build.sh -v ${{ steps.latest-scaphandre-tag.outputs.tag }} | |
- name: Build package with version tag and Debian 12 Bookworm | |
run: | | |
./build.sh -i debian:bookworm-slim -v ${{ steps.latest-scaphandre-tag.outputs.tag }} |