Workflow file for this run
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 and publish gh-pages | |
| # https://docs.github.com/en/actions/guides/building-and-testing-python | |
| # https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6.1.0 | |
| with: | |
| node-version: 20 | |
| - name: Install Dependencies | |
| run: npm install --include=dev | |
| - name: Build Docs 📚 | |
| run: npm run docs | |
| - name: Deploy Docs 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4.7.6 | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: docs # The folder the action should deploy | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Used to authenticate with the deploy action. |