ci: release workflow for tagged builds#13
Merged
Merged
Conversation
Tag-triggered release that publishes PDF/EPUB/HTML bundles on `v*-vi.*` tags. Tag format is `v<UPSTREAM_VERSION>-vi.<N>`, e.g. `v3.3.2-vi.1` for the first Vietnamese release on upstream v3.3.2. UPSTREAM.md pins the exact upstream commit so release notes can link back; scripts/release.sh automates tag creation so I don't have to keep looking up the vi.N counter by hand.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a tag-triggered release workflow so I can cut Vietnamese releases without hand-building artifacts. Triggered by pushing a tag matching
v*-vi.*(e.g.v3.3.2-vi.1); also runnable via workflow_dispatch for re-runs.Tag scheme
v<UPSTREAM_VERSION>-vi.<N>— the first Vietnamese release on upstream v3.3.2 isv3.3.2-vi.1. Translation fixes against the same upstream bumpN; an upstream version bump resetsNto 1.UPSTREAM.mdpins the exact upstream commit (9fb2a78e12e71e1c38c4e6b6a2da2260f00ec5d2) so release notes can link back to beejjorgensen/bgnet at the right point.What the workflow does
UPSTREAM.md.bgnet-vi-buildimage via buildx withtype=ghacache (same pattern as the pages deploy — first run is cold, subsequent runs warm).scripts/build_vi.shinside the container to producedocs/.bgnet.epub,bgnet_html.zip+bgnet_html_wide.zip,bgnet_source.zip, and a full-site tarball for mirroring.softprops/action-gh-release@v2publishes them.scripts/release.sh
Local helper so I don't have to look up the next
-vi.Neach time. Parsessrc/MakefileVERSION_DATEfor the upstream version, scans existing tags for the highest-vi.N, prompts before tagging, and optionally pushes with--push.Test plan
v3.3.2-vi.1via./scripts/release.sh --pushon main.beejjorgensen/bgnet@9fb2a78e.