Merge pull request #17 from frostyard/nbc #118
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: Build | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/frostyard/snow:latest | |
| volumes: | |
| - /proc:/proc | |
| - /:/run/host | |
| options: --privileged -it | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: "${{ secrets.ORG_PAT }}" | |
| fetch-depth: 0 # Important: Need full history for gbp dch | |
| - name: Install build dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y git-buildpackage devscripts lintian | |
| apt-get build-dep -y . | |
| - name: Build .deb package | |
| run: | | |
| dpkg-buildpackage | |
| mv ../snow-first-setup_*.deb snow-first-setup.deb | |
| - name: Calculate and Save Checksums | |
| run: | | |
| sha256sum snow-first-setup.deb >> checksums.txt | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: snow-first-setup | |
| path: | | |
| checksums.txt | |
| snow-first-setup.deb | |
| - uses: softprops/action-gh-release@v2 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| token: "${{ secrets.ORG_PAT }}" | |
| tag_name: "continuous" | |
| prerelease: true | |
| name: "Continuous Build" | |
| files: | | |
| checksums.txt | |
| snow-first-setup.deb |