Skip to content

Add GitHub Release publishing to deb package build workflow#1

Merged
wirwolf merged 2 commits intomainfrom
claude/fix-github-actions-deb-BgVu8
Feb 9, 2026
Merged

Add GitHub Release publishing to deb package build workflow#1
wirwolf merged 2 commits intomainfrom
claude/fix-github-actions-deb-BgVu8

Conversation

@wirwolf
Copy link
Copy Markdown
Contributor

@wirwolf wirwolf commented Feb 9, 2026

Summary

Enhanced the deb package build workflow to support automated publishing to GitHub Releases when version tags are pushed, while maintaining existing artifact upload functionality.

Key Changes

  • Expanded trigger conditions: Added tag-based triggers (tags: [ 'v*' ]) to enable automated releases on version tag pushes
  • Improved build step naming: Renamed workflow steps for better clarity and maintainability
  • Simplified dependencies: Removed unnecessary dh-make package from build dependencies
  • Artifact organization: Introduced dist/ directory to centralize artifact collection and improve workflow structure
  • Release automation: Added new step using softprops/action-gh-release@v2 to automatically publish deb packages to GitHub Releases when version tags are created
  • Conditional publishing: Release publishing only triggers on version tags (if: startsWith(github.ref, 'refs/tags/v')) to prevent accidental releases on regular pushes

Implementation Details

  • Build command simplified to -b flag (binary-only) instead of full source package build
  • Artifacts are collected into a dedicated dist/ directory before upload, making the workflow more maintainable
  • Both artifact upload and GitHub Release publishing reference the same dist/*.deb path for consistency
  • Workflow maintains backward compatibility with existing pull request builds

https://claude.ai/code/session_01SrZkem81TfpwKXC4Pf5itR

- Add -b flag to dpkg-buildpackage to build binary-only (avoids
  failure from missing orig tarball for native package)
- Remove unnecessary build deps (dh-make, debhelper-compat virtual pkg)
- Collect .deb files into dist/ for reliable artifact upload
- Add tag trigger (v*) and GitHub Release publishing step via
  softprops/action-gh-release@v2

https://claude.ai/code/session_01SrZkem81TfpwKXC4Pf5itR
debhelper compat is already specified via Build-Depends on
debhelper-compat (= 13) in debian/control. Having debian/compat
as well causes debhelper to error out with "compat level specified
both in debian/compat and via build-dependency on debhelper-compat".

https://claude.ai/code/session_01SrZkem81TfpwKXC4Pf5itR
@wirwolf wirwolf merged commit 693d0db into main Feb 9, 2026
1 check passed
@wirwolf wirwolf deleted the claude/fix-github-actions-deb-BgVu8 branch February 9, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants