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
- Astro docs provides a good starting point
deploying site elsewhere
- There is a a convinient github-action
- Can you reuse
withastro/action@v0to build it? You might, but it is designed for scenario above, this action creates an artifact that is consumed byactions/deploy-pages@v1action.- 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
.nojekyllfile in blog root - otherwise css is messed up2