feat: split the docs between multiple chapters #60
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: Build and Deploy mdBook Docs to VPS | |
| on: | |
| push: | |
| branches: | |
| - docs | |
| paths: | |
| - "src/**" | |
| - "book.toml" | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "book.toml" | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup mdBook | |
| uses: peaceiris/actions-mdbook@v2 | |
| with: | |
| mdbook-version: 'latest' | |
| - name: Build mdBook | |
| run: mdbook build | |
| # Deploy to VPS over SSH | |
| - name: Deploy Book to VPS | |
| uses: appleboy/scp-action@v1 | |
| with: | |
| host: ${{ secrets.VPS_IP }} | |
| username: actions | |
| key: ${{ secrets.VPS_PRIV_KEY }} | |
| port: 22 | |
| source: "book" | |
| target: "/home/actions/repos/kyori-component-json" | |
| strip_components: 1 | |
| rm: true |