Skip to content

🔧 chore(sphinx_docs.yml): update deployment action to use GITHUB_TOKE… #7

🔧 chore(sphinx_docs.yml): update deployment action to use GITHUB_TOKE…

🔧 chore(sphinx_docs.yml): update deployment action to use GITHUB_TOKE… #7

Workflow file for this run

name: Build and Deploy Sphinx Docs to GitHub Pages
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Sphinx and Theme
run: |
pip install Sphinx
pip install sphinx_rtd_theme
- name: Build Docs
run: |
cd docs
make html
- name: List files in _build
run: ls -R ./docs/_build/html
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: github-pages
path: ./docs/_build/html
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifact_name: github-pages