operational and scroll added #345
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: ๐ Deploy DOCS to GitHub Pages | |
| on: | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: โฌ๏ธ Checkout | |
| uses: actions/checkout@v3 | |
| - name: ๐พ Setup Cache & Install mdBook | |
| uses: ./.github/actions/cargo-mdbook-cache | |
| - name: ๐ Generate SUMMARY.md and index docs | |
| run: | | |
| chmod +x ./scripts/docs/generate_index.sh | |
| ./scripts/docs/generate_index.sh | |
| - name: ๐ ๏ธ Build Book | |
| run: mdbook build docs | |
| - name: ๐ Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/book |