Skip to content

publish

publish #6

Workflow file for this run

name: publish
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v3
- name: Build with honkit and publish to Bengal website
run: |
npm install honkit
npm install gitbook-plugin-hints
npx honkit build
git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@github.com/manorrock/website
cd website/bengal
rm -rf book
mv ../../_book book
cd book
rm -rf .devcontainer
rm -rf .github
rm -rf .gitignore
cd ..
git config --global user.email "[email protected]"
git config --global user.name "Automated publish"
git add .
git commit -a -m "Automated publishing, see https://github.com/manorrock/bengal-book"
git push