Skip to content

AUR release on push to main, with Discord notifications - #23

Merged
Staaaszek merged 6 commits into
mainfrom
ci/aur-release
Nov 26, 2026
Merged

Staaaszek merged 6 commits into
mainfrom
ci/aur-release

Conversation

@Staaaszek

@Staaaszek Staaaszek commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Adds .github/workflows/aur-release.yml. On every push to main it:

  1. runs the CI (ci.yml now also accepts workflow_call; plain pushes to main are skipped there so it does not run twice),
  2. compares <project(VERSION)>-<pkgrel> with the AUR package and stops when it is already published (fails if it is older),
  3. builds and installs the package in an Arch container (with vmime from the AUR) from a local source archive, and checks that every library comes from a package,
  4. tags the commit as <version> (if the tag does not exist yet),
  5. fills in pkgver and sha256sums from the GitHub tag tarball, generates .SRCINFO and pushes to ssh://aur@aur.archlinux.org/email-client.git,
  6. posts the outcome to Discord: a success message when a new version reached the AUR, an error message when the CI or the release failed, nothing when there was nothing new to release.

Also adds .github/workflows/discord-pr-merged.yml, which announces every PR merged into main on Discord. A merge with a version bump therefore gives two messages: the merge, then the release result.

Secrets: AUR_SSH_PRIVATE_KEY and DISCORD_WEBHOOK_URL (Discord steps only warn when it is missing). The AUR host key is pinned.

aur/PKGBUILD is fixed (real source URL, the correct source directory, gpm dependency) and the version is bumped to 2.1.0, because the AUR already has 2.0.0-2. The PKGBUILD was test-built in an archlinux:latest container.

The PKGBUILD in aur/ is now the one that gets published: the source points at
the GitHub tag tarball again, the build uses the extracted Email-Client-<ver>
directory, and gpm is listed as a runtime dependency.

Bump the version to 2.1.0, since the AUR already has 2.0.0.
@Staaaszek Staaaszek changed the title AUR release on push to stable AUR release on push to main Nov 26, 2026
@Staaaszek Staaaszek changed the title AUR release on push to main AUR release on push to main, with Discord notifications Nov 26, 2026
@Staaaszek
Staaaszek merged commit 7953885 into main Nov 26, 2026
4 checks passed
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