Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force-push new history with a single commit for the default deployment strategy #83

Open
spenserblack opened this issue Jun 7, 2023 · 1 comment

Comments

@spenserblack
Copy link
Owner

spenserblack commented Jun 7, 2023

The purpose of this repo was to make the main repository the source of version control for the wiki, instead of a separate repository (with very different security and UI). Given that the history is preserved in the main repository, it might be worth considering a simpler, more destructive strategy for deploying the wiki.

This could resolve #72


This is somewhat inspired by instructions for manually deploying to gh-pages in the Vue CLI docs, which is

set -e

npm run build
# or
yarn build

cd dist

git init
git add -A
git commit -m 'deploy'

# deploy to gh-pages
git push -f [email protected]:OWNER/REPO.git master:gh-pages

cd -

It might also be worth taking inspiration from peaceiris/actions-gh-pages.


If a strategy option is added, this would be called the orphan strategy.

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

No branches or pull requests

2 participants