Files
lucisv/.gitea/workflows/release.yml
T
lucioandClaude Fable 5 19253c105b
ci / checks (push) Successful in 41s
release / build-and-publish (push) Successful in 3m12s
CI on Gitea Actions: checks on push, full cross-platform release on tag; v0.7.1
.gitea/workflows/ci.yml runs fmt/clippy/test on every master push and PR
on the self-hosted mac-arm64 runner (host mode, brew-serviced act_runner).
.gitea/workflows/release.yml turns a vX.Y.Z tag into a Gitea release:
tools/release.sh --cross (Apple Silicon + x86_64 macOS, musl and RHEL 8
linux-gnu, Windows; both binaries; .vsix; SHA256SUMS), a tag-vs-version
check, tools/release_notes.sh (the CHANGELOG section becomes the notes;
missing section fails the release) and tools/publish_release.sh
(get-or-create + attach, re-run safe). Version bumped to 0.7.1 with a
changelog covering directive-split and this flow.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-26 01:51:45 -07:00

37 lines
1.4 KiB
YAML

# Release: pushing a tag `vX.Y.Z` builds every distribution artifact and
# publishes a Gitea release with the CHANGELOG section for that version as
# its notes. The artifact set is exactly what tools/release.sh --cross
# produces: host (Apple Silicon) + x86_64 macOS + static-musl Linux +
# RHEL 8-compatible linux-gnu + Windows binaries for both lucisv and
# lucisv-server, the platform-independent .vsix, and SHA256SUMS.
#
# The release fails, deliberately, when the tag does not match the
# workspace version or CHANGELOG.md has no section for it: every release
# ships with real, written notes (see tools/RELEASING.md).
name: release
on:
push:
tags:
- 'v*'
jobs:
build-and-publish:
runs-on: macos-arm64
steps:
- uses: actions/checkout@v4
- name: Build release artifacts for every target
run: tools/release.sh --cross
- name: Check the tag against the crate version
run: |
v=$(target/release/lucisv --version | awk '{print $2}')
[ "v$v" = "$GITHUB_REF_NAME" ] || {
echo "tag $GITHUB_REF_NAME does not match crate version $v" >&2
exit 1
}
- name: Extract the release notes from CHANGELOG.md
run: tools/release_notes.sh "${GITHUB_REF_NAME#v}" > dist/RELEASE_NOTES.md
- name: Create the release and attach the artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: tools/publish_release.sh "$GITHUB_REF_NAME" dist