Skip to content

Add AUR publishing automation#2

Merged
OneNoted merged 4 commits intomainfrom
aur-release-automation
Apr 14, 2026
Merged

Add AUR publishing automation#2
OneNoted merged 4 commits intomainfrom
aur-release-automation

Conversation

@OneNoted
Copy link
Copy Markdown
Owner

What changed

  • add reusable scripts to build release archives and render/publish AUR metadata
  • add ghfetch-rs-bin and ghfetch-rs-git AUR package templates under packaging/aur
  • add GitHub Actions to publish the -bin package on v* tags and refresh the -git package from main
  • document the package names, release flow, and required AUR_SSH_PRIVATE_KEY secret in the README

Why

  • ghfetch is already taken in the AUR, so this uses the ghfetch-rs-* names while still installing the ghfetch executable
  • the release workflow should publish the prebuilt package from tagged artifacts and keep the VCS package current automatically
  • CI should fail early if AUR metadata generation regresses

Validation

  • cargo fmt --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test
  • local render of both AUR packages and the tagged release archive

@OneNoted OneNoted marked this pull request as ready for review April 14, 2026 12:41
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd16dd2951

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return
fi

printf '0.0.0.r%s.g%s\n' \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Align ghfetch-rs-git fallback pkgver with automation

When no v* tags are present, this pkgver() fallback hardcodes 0.0.0, but scripts/compute-git-pkgver.sh falls back to the Cargo version (0.1.0 here). The automation in .github/workflows/aur-git.yml renders and publishes metadata using the script output, so AUR metadata can advertise 0.1.0.r... while end users building the package get 0.0.0.r..., creating inconsistent versioning and confusing update behavior.

Useful? React with 👍 / 👎.

@OneNoted OneNoted merged commit c22fbc6 into main Apr 14, 2026
4 checks passed
@OneNoted OneNoted deleted the aur-release-automation branch April 14, 2026 12:52
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.

1 participant