Releases are cut by GoReleaser on a vX.Y.Z tag.
git tag -a v0.1.0 -m "v0.1.0"
git push origin v0.1.0The Release workflow (.github/workflows/release.yml) then builds and
publishes, for linux/macOS/windows on amd64 + arm64:
- archives (
.tar.gz,.zipon Windows) +checksums.txt - Linux packages (
.deb,.rpm) - a Homebrew cask pushed to
MicroClub-USTHB/homebrew-tap - a Docker image at
ghcr.io/microclub-usthb/mctf:<version>and:latest - man pages (one per command), bundled in the archives (
man/) and installed to/usr/share/man/man1by the.deb/.rpmpackages
Man pages are generated at build time (goreleaser before hook, same as
make man), so there are no generated files committed to the repo.
ghcr.io/microclub-usthb/mctf is published on each release (amd64). It bundles
git + ssh; mount a Docker socket for build/deploy:
docker run --rm -v "$PWD:/event" -w /event ghcr.io/microclub-usthb/mctf:latest validateGHCR auth uses the workflow's GITHUB_TOKEN (needs packages: write, already
set) — no extra secret required.
Version/commit/date are injected into cmd.version / cmd.commit /
cmd.date via ldflags, so mctf version reports the tagged build.
- Create the tap repo
MicroClub-USTHB/homebrew-tap. - Add a repo secret
HOMEBREW_TAP_TOKEN(a PAT withcontents:writeon the tap) tomctf-cli.
Until that secret exists the cask push is skipped automatically — binaries and packages still publish. Once set up:
brew install MicroClub-USTHB/tap/mctfgoreleaser check # validate .goreleaser.yaml
goreleaser release --snapshot --clean --skip=publish # full local build, no publish