Add Mosaic Debian package workflow #1
Workflow file for this run
This file contains hidden or 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: Debian packages | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/debian-packages.yml" | |
| - "packaging/**" | |
| push: | |
| branches: [master] | |
| tags: | |
| - "mosaic-adaptagrams-*" | |
| paths: | |
| - ".github/workflows/debian-packages.yml" | |
| - "packaging/**" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build Debian packages | |
| run: bash packaging/build_debs.sh | |
| - name: Upload Debian packages | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: adaptagrams-debs | |
| path: build/apt/*.deb | |
| retention-days: 14 | |
| release: | |
| needs: build | |
| if: startsWith(github.ref, 'refs/tags/mosaic-adaptagrams-') | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: adaptagrams-debs | |
| path: build/apt | |
| - name: Publish release assets | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: build/apt/*.deb |