ci: automate AUR package publishing on release#100
Conversation
Add a release step to automatically generate and publish the PKGBUILD to the Arch User Repository (AUR) for the gitwand-bin package. Update Linux getting-started guide to highlight AUR availability. 🪄 Commit via GitWand
|
@devlint Toutefois, je crois que ça nécessiterait de désactiver le in-app update pour la version Une fois que le workflow sera en place et le paquet disponible, je pourrais m'occuper de tester le tout de mon côté, car je suis sur Arch. P.S. Ce n'est pas pressant, on peut laisser ça de côté pour l'instant. |
Summary
Automate the publishing of the
gitwand-binpackage to the Arch User Repository (AUR) upon a new release. This simplifies distribution for Arch Linux users and ensures the getting-started guide is updated with the new installation method.Changes
Here are the next steps to set up and trigger the publication:
1. AUR Account & SSH Key Setup
Register an account on the AUR Website https://aur.archlinux.org/ if you haven't already.
Generate an SSH key pair on your machine for the AUR integration:
ssh-keygen -f ~/.ssh/aur_key -t ed25519 -C "your-email@example.com"
Upload the public key ( aur_key.pub ) to your AUR profile page under SSH Public Key.
2. Configure GitHub Secrets
Add the following secrets to your GitHub repository under Settings > Secrets and variables > Actions > New repository secret:
• AUR_USERNAME : Your AUR account username.
• AUR_EMAIL : The email address associated with your AUR account.
• AUR_SSH_PRIVATE_KEY : The content of the private key ( aur_key ) you generated above.
3. Release & Publish
Once the secrets are set up, publishing to the AUR happens automatically when you tag a release:
Bump the version and prepare the release:
./scripts/bump-version.sh X.Y.Z
Commit, tag, and push the changes:
git add -A
git commit -m "chore: bump version to X.Y.Z"
git tag vX.Y.Z
git push origin main --tags
The publish-aur job in the Release workflow will pick up the tag, build the Debian package ( .deb ), generate the PKGBUILD with matching checksums, and push it directly to the AUR repository at ssh://aur@aur.archlinux.org/gitwand-bin.git .
──────
Summary of Work
• Researched the codebase for AUR integration.
• Identified the AUR deployment pipeline in release.yml and the template in PKGBUILD.template.
• Outlined the concrete setup steps (AUR account, SSH key, GitHub secrets, and tagging process) needed to publish the package.
Test plan