Skip to content

Add automated AUR deployment workflow with semantic versioning#16

Merged
mklan merged 6 commits intomainfrom
copilot/deploy-new-version-to-aur
Jan 31, 2026
Merged

Add automated AUR deployment workflow with semantic versioning#16
mklan merged 6 commits intomainfrom
copilot/deploy-new-version-to-aur

Conversation

Copy link
Contributor

Copilot AI commented Jan 31, 2026

Implements automated deployment to AUR and GitHub releases with configurable semantic version bumping (patch/minor/major).

Implementation

Workflow (.github/workflows/deploy.yml)

  • Manual trigger with version bump type selection
  • Extracts current version from hyproled script via regex, calculates new version
  • Updates script version, creates Git tag, generates GitHub release
  • Deploys to AUR: clones hyproled-git, increments pkgrel, regenerates .SRCINFO, pushes

Security

  • Explicit contents: write permission (CodeQL compliant)
  • SSH key verification via ssh-keyscan (no host key checking bypass)
  • Conditional AUR deployment (requires AUR_SSH_KEY secret)

Compatibility

  • Custom makepkg --printsrcinfo wrapper for Ubuntu CI (sources PKGBUILD, generates .SRCINFO format)
  • Proper bash array expansion for multi-value fields

Documentation

  • .github/DEPLOYMENT.md covers secret setup, workflow usage, manual deployment fallback
  • README.md links to deployment guide

Usage

# Actions → Deploy to AUR and Create Release → Run workflow
# Select: patch (0.1.3 → 0.1.4), minor (0.1.3 → 0.2.0), or major (0.1.3 → 1.0.0)

Requires AUR_SSH_KEY repository secret configured with SSH private key registered to AUR account.

Original prompt

Create an action that will deploy a new version to aur. You can set if patch minor major. Here the aur repo https://aur.archlinux.org/hyproled-git.git. Also create github release


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits January 31, 2026 01:44
Co-authored-by: mklan <5452972+mklan@users.noreply.github.com>
Co-authored-by: mklan <5452972+mklan@users.noreply.github.com>
…tion

Co-authored-by: mklan <5452972+mklan@users.noreply.github.com>
Co-authored-by: mklan <5452972+mklan@users.noreply.github.com>
Co-authored-by: mklan <5452972+mklan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add deployment action for new version to AUR Add automated AUR deployment workflow with semantic versioning Jan 31, 2026
Copilot AI requested a review from mklan January 31, 2026 01:51
@mklan mklan marked this pull request as ready for review January 31, 2026 09:35
@mklan mklan merged commit 411a065 into main Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants