#9 docs examples template (#25) #19
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: "Build and deploy Github pages" | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout 🛎️" | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: "Set up Python" | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: "Install Python dependencies" | |
run: | | |
pip3 install setuptools | |
pip3 install sphinx sphinx-rtd-theme sphinxemoji | |
- name: "Build Sphinx Doc 🔧" | |
run: | | |
make html | |
# a modifier pour correspondre au projet | |
- name: "Deploy Github Pages 🚀" | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: docs-publish-github-page | |
FOLDER: build/html/ |