a collection of thoughts, essays and service notes
TAG

Astro

1 note with this tag

notes (01)

2023 1 notes
17 aug 2023

Implication of deploying github page to another repo

Be aware that it is a n old post. Just reference or an inspiration if someone is lost.

Years ago I had a thought to seperate repo with hugo theme and the one with rendered page due to possible use of utterances1. There are my experiences with both approaches:

deploying page to the same repo

deploying site elsewhere

  • There is a a convinient github-action
  • Can you reuse withastro/action@v0 to build it? You might, but it is designed for scenario above, this action creates an artifact that is consumed by actions/deploy-pages@v1 action.
    • tl;dr: there are better ways

Example of deploying astro blog to github pages

There is my example of working github action.

Things worth to note:

  • By using actions to install node and pnpm there is huge time savings due to caching.
  • There should be a .nojekyll file in blog root - otherwise css is messed up2

Footnotes

  1. Is it a good idea? One of tutorials on integrating utterances with astro doesn’t have it either. I hope not to see it as a opinion whether this is good option, but someday I will give it a try.

  2. Source

thought astrogithubcd