Update security.yml #101
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: Documentation | |
permissions: {} | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# fetch the whole history to get tags | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Build documentation 🔨 | |
run: make html | |
working-directory: docs | |
# allow to serve dirs starting with _ (_static for example) | |
- name: Add .nojekyll | |
run: touch .nojekyll | |
working-directory: docs/build/html | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
# note: folder doesn't care about the job's working directory | |
folder: docs/build/html |