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

Fixes #1 - Add a publishing workflow #2

Merged
merged 1 commit into from Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Expand Up @@ -12,16 +12,17 @@ jobs:
npm install honkit
npm install gitbook-plugin-hints
npx honkit build
git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@github.com/bengalicu/bengal-website
cd bengal-website
rm -rf book
mv ../_book book
git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@github.com/manorrock/website
cd website
rm -rf bengal/book || true
mkdir -p bengal/book
mv ../_book bengal/book
rm -rf .devcontainer
rm -rf .github
rm -rf .gitignore
git config --global user.email "noreply@bengal.icu"
git config --global user.email "noreply@manorrock.com"
git config --global user.name "Automated publish"
git add .
git commit -a -m "Automated publishing, see https://github.com/bengalicu/bengal-book"
git commit -a -m "Automated publishing, see https://github.com/manorrock/bengal-book"
git push