Add AUR (Arch Linux User Repository) packaging and auto-publish workflow#91
Open
mekwall wants to merge 1 commit into
Open
Add AUR (Arch Linux User Repository) packaging and auto-publish workflow#91mekwall wants to merge 1 commit into
mekwall wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds Arch Linux AUR packaging support for the existing bb release distribution flow, including package metadata, an automated publish workflow, and README installation guidance.
Changes:
- Adds AUR
PKGBUILDand.SRCINFOforbitbucket-cli-bin. - Adds a GitHub Actions workflow to publish release updates to AUR.
- Documents Arch Linux installation via AUR helpers.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
README.md |
Adds Arch Linux AUR install instructions. |
packaging/aur/PKGBUILD |
Defines the AUR binary package and shell completion installation. |
packaging/aur/.SRCINFO |
Adds machine-readable AUR metadata. |
.github/workflows/publish-aur.yml |
Adds release-triggered AUR publishing workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds packaging files for publishing bitbucket-cli to the AUR as a -binary package (pre-built binaries from GitHub releases). Included: - packaging/aur/PKGBUILD: Package definition with real SHA256 checksums, LICENSE installation, optdepends for Secret Service backend, and shell completions for bash, zsh, and fish - packaging/aur/.SRCINFO: Machine-readable package metadata - .github/workflows/publish-aur.yml: GitHub Action that auto-publishes to AUR on release. Uses updpkgsums with manual fallback, pinned action commit SHA for supply chain security - README.md: Added Arch Linux installation instructions Setup instructions for the maintainer: 1. Create an AUR account at https://aur.archlinux.org/register 2. Generate an ed25519 SSH key pair for CI: ssh-keygen -t ed25519 -C 'github-actions@bitbucket-cli' 3. Add the public key to your AUR account 4. Add GitHub repository secrets: - AUR_SSH_PRIVATE_KEY: The private key - AUR_USERNAME: Your AUR username - AUR_EMAIL: Your AUR email 5. Create the initial AUR package (one-time, manual): git clone ssh://aur@aur.archlinux.org/bitbucket-cli-bin.git cd bitbucket-cli-bin cp /path/to/bitbucket-cli/packaging/aur/PKGBUILD . cp /path/to/bitbucket-cli/packaging/aur/.SRCINFO . # Update version and checksums for current release sed -i 's/^pkgver=.*/pkgver=0.18.0/' PKGBUILD updpkgsums makepkg --printsrcinfo > .SRCINFO git add PKGBUILD .SRCINFO git commit -m 'Initial upload: bitbucket-cli-bin 0.18.0' git push 6. Subsequent releases auto-update via this workflow
8e2749d to
ce53d3d
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds packaging support for the Arch Linux User Repository (AUR), alongside the existing deb/rpm/snap/chocolatey/homebrew packaging.
The package is published as
bitbucket-cli-bin— a-binvariant that ships pre-built binaries from GitHub releases.What's included
packaging/aur/PKGBUILDpackaging/aur/.SRCINFO.github/workflows/publish-aur.ymlupdpkgsumswith manual fallback, pinned action commit SHA for supply chain securityREADME.mdSetup instructions (one-time, for the maintainer)
The GitHub Action can only update an existing AUR package. The initial submission must be done manually.
1. Create an AUR account
Register at https://aur.archlinux.org/register
2. Generate an SSH key for CI
3. Add the public key to your AUR account
Go to https://aur.archlinux.org → Account → SSH Keys → paste the public key
4. Add GitHub repository secrets
In this repo's Settings → Secrets and variables → Actions, add:
AUR_SSH_PRIVATE_KEYAUR_USERNAMEAUR_EMAIL5. Create the initial AUR package (one-time, manual)
After this, every new GitHub release will automatically update the AUR package via the workflow.
Notes
gnome-keyring(optdepends) — provides the Secret Service daemon needed by go-keyring for credential storage. libsecret alone is a client library without a running daemon.