Skip to content

Updated gha

Updated gha #31

Workflow file for this run

name: "Sphinx: Render docs"
on:
push:
branches:
- "gh-pages"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python3 -m pip install --upgrade pip
- name: Install dependencies
run: python3 -m pip install -r requirements.txt
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- run: sphinx-build -M html source build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "docs/build/html"
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2