website: update docpress (#220) #41
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: Website Deployment | |
| on: | |
| push: | |
| # Only deploy upon new commits to `main` | |
| branches: | |
| - main | |
| # Only run this workflow if there are changes in the following | |
| paths: | |
| - docs/** | |
| - .github/workflows/website.yml | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - run: pnpm install | |
| - run: pnpm run docs:test | |
| - run: pnpm run docs:build | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@4.1.4 | |
| with: | |
| branch: gh-pages | |
| folder: docs/dist/client | |
| # Remove previous build files | |
| clean: true | |
| # Remove history — avoiding exploding Git repository size | |
| single-commit: true | |
| # Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build. | |
| clean-exclude: | | |
| .nojekyll | |
| permissions: | |
| contents: write |