Merge pull request #320 from lichess-org/dependabot/npm_and_yarn/exam… #216
This file contains 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: Publish documentation | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: doc | |
steps: | |
- uses: actions/checkout@v3 | |
- run: npm ci | |
- run: npm run build | |
- uses: actions/configure-pages@v3 | |
- uses: actions/upload-pages-artifact@v2 | |
with: | |
path: doc/public | |
- uses: actions/deploy-pages@v2 | |
id: deployment |