ci: add the rsync deploy workflow for stratara.tech - #59
Merged
Conversation
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.
What this changes
serve-the-docs-from-our-own-server(group 2): a newdeploy-site.ymlthat builds the DocFX site exactly asdocs.ymldoes and copies it by rsync to thestratara.techvhost, behind theproductionenvironment gate. Never on a pull request, so a fork's run gets no secrets.--deletewith.well-knownexcluded (design decision 2).llms.txtall 200,no-cacheon HTML.llms.txtandllms-full.txtare copied to the site root, since the trigger paths name them and DocFX does not ship them..htaccess: only DocFX's fingerprinted assets underpublic/are immutable;main.css,main.jsanddocfx.min.*are unfingerprinted and keep revalidating.Nothing else moves yet:
docs.ymlkeeps publishing GitHub Pages, no reference changes, no DNS. The workflow does nothing until theproductionenvironment, the secrets and the vhost's SSH shell exist (owner tasks 1.1–1.4, 2.2), and its first run is a manual dispatch (2.7).How it was verified
./scripts/local-gauntlet.sh)docfx build --warningsAsErrorslocally; every file the post-deploy check fetches exists in_site; the immutable pattern matches 108 fingerprinted files and none of the 5 unfingerprinted ones