Can I publish to root gh-pages (username.github.io) from repo other than github.com/username/username.github.io using GitHub Actions? #3512
-
I have a repo, https://github.com/benlindsay/quarto-blog, that contains my blog source code. I'd like to use the blog rendered from that repo to show up as https://benlindsay.github.io, not https://benlindsay.github.io/quarto-blog, which is where the default GitHub actions setup puts it. I currently/previously have/had a Gatsby site at https://github.com/benlindsay/gatsby-site, and I manually published that with a script that looks like this: repo="[email protected]:benlindsay/benlindsay.github.io.git"
rm -rf benlindsay.github.io
git clone "$repo"
mv benlindsay.github.io/.git public/
rm -rf benlindsay.github.io
(cd public && git add . && git commit -m "$(date)" && git push origin master) Which takes the site content which was generated in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The Quarto GitHub action is a simple and minimalist action with low privileges requirements. If you want to build from repo A and push results to repo B, then you have to write those steps in your GitHub Action workflow. |
Beta Was this translation helpful? Give feedback.
The Quarto GitHub action is a simple and minimalist action with low privileges requirements.
If you want to build from repo A and push results to repo B, then you have to write those steps in your GitHub Action workflow.
Default secret token would allow you to do the git push step to another repository, thus you'll need to set a new token with sufficient permission.