Skip to content

Add automated sync pipeline: shop/ → homegrown-spirits-website#15

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/replace-shop-website-code
Draft

Add automated sync pipeline: shop/ → homegrown-spirits-website#15
Copilot wants to merge 2 commits into
mainfrom
copilot/replace-shop-website-code

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

The shop website living at sullivanrsteele.com/shop/ needed to be deployed as the standalone site at homegrownspirits.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.py

Reads shop/, shared js/, and assets/ from this repo; applies all path transformations; writes a deploy-ready tree to /tmp/homegrown-site.

Key transforms:

Source Output
/shop/catalog.html /catalog.html
../js/cart.js (top-level) js/cart.js
../../js/cart.js (artist/ subdir) ../js/cart.js
og:urlsullivanrsteele.com/shop/… homegrownspirits.com/…
Footer href="/" (portfolio links) href="https://www.sullivanrsteele.com"
cart.js nav target .nav-links .hs-nav-links
PayPal order description homegrownspirits.com
artists.json shopPage /shop/artist/… /artist/…

Also generates a standalone sw.js with 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.yml

Triggers on push to main when shop/**, js/cart.js, js/theme.js, assets/{portrait,favicon,apple-touch-icon}.*, or the build script itself change — plus workflow_dispatch for manual runs. Runs the build script, clones homegrown-spirits-website, replaces its content (preserving CNAME), and pushes.

Workflow permissions are locked to contents: read; writes to the target repo go through a dedicated HOMEGROWN_SPIRITS_TOKEN PAT secret.

Required one-time setup

Add a fine-grained PAT with Contents: Read and Write on IAmADoctorYes/homegrown-spirits-website as a secret named HOMEGROWN_SPIRITS_TOKEN in 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.

…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 AI requested a review from IAmADoctorYes March 17, 2026 16:36
Copilot stopped work on behalf of IAmADoctorYes due to an error March 17, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants