Added self-hosted release notes #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate Book and Publish to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| ebook: | |
| name: Build and upload | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Book generation | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Generate ebook from markdown | |
| run: bin/build | |
| - name: Add CNAM file | |
| run: echo "docs.gitnotebooks.com" >> ./book/CNAME | |
| # HTML publication as Github Page | |
| - name: Publish HTML | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./book | |
| publish_branch: gh-pages |