Add automated sync pipeline: shop/ → homegrown-spirits-website#15
Draft
Copilot wants to merge 2 commits into
Draft
Add automated sync pipeline: shop/ → homegrown-spirits-website#15Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…n-spirits-website Co-authored-by: IAmADoctorYes <23248012+IAmADoctorYes@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replace shop website code from personal site
Add automated sync pipeline: shop/ → homegrown-spirits-website
Mar 17, 2026
Copilot stopped work on behalf of
IAmADoctorYes due to an error
March 17, 2026 16:37
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.
The shop website living at
sullivanrsteele.com/shop/needed to be deployed as the standalone site athomegrownspirits.com(IAmADoctorYes/homegrown-spirits-website), which previously held only a placeholder page.Since the two sites are separate repos, this adds a build script + GitHub Actions workflow that transforms and pushes the shop code on every relevant change.
scripts/build-homegrown-site.pyReads
shop/, sharedjs/, andassets/from this repo; applies all path transformations; writes a deploy-ready tree to/tmp/homegrown-site.Key transforms:
/shop/catalog.html/catalog.html../js/cart.js(top-level)js/cart.js../../js/cart.js(artist/ subdir)../js/cart.jsog:url→sullivanrsteele.com/shop/…homegrownspirits.com/…href="/"(portfolio links)href="https://www.sullivanrsteele.com"cart.jsnav target.nav-links.hs-nav-linkshomegrownspirits.comartists.jsonshopPage/shop/artist/…/artist/…Also generates a standalone
sw.jswith a build-time cache version (e.g.hs-site-20260317-163239) for automatic cache invalidation on each deploy..github/workflows/sync-shop-to-homegrown-spirits.ymlTriggers on push to
mainwhenshop/**,js/cart.js,js/theme.js,assets/{portrait,favicon,apple-touch-icon}.*, or the build script itself change — plusworkflow_dispatchfor manual runs. Runs the build script, cloneshomegrown-spirits-website, replaces its content (preservingCNAME), and pushes.Workflow permissions are locked to
contents: read; writes to the target repo go through a dedicatedHOMEGROWN_SPIRITS_TOKENPAT secret.Required one-time setup
Add a fine-grained PAT with Contents: Read and Write on
IAmADoctorYes/homegrown-spirits-websiteas a secret namedHOMEGROWN_SPIRITS_TOKENin this repo's Actions settings. The first sync fires automatically on merge.📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.