Skip to content

Commit

Permalink
Merge pull request #2 from manorrock/issue-1
Browse files Browse the repository at this point in the history
Fixes #1 - Add a publishing workflow
  • Loading branch information
mnriem committed Mar 19, 2024
2 parents b912f62 + de8b20a commit 78db6a7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
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

0 comments on commit 78db6a7

Please sign in to comment.