Sphinx documentation #5
Workflow file for this run
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: Deploy GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: build_docs | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
# Download artifact from another workflow (docs.yml) | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: DocumentationHTML | ||
path: ${{ github.workspace }} | ||
deploy: | ||
# Add a dependency to the build job | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Add any necessary steps to build your GitHub page | ||
# Deploy the built site | ||
- name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v4 | ||
with: | ||
branch: gh-pages # Or the branch you want to deploy to | ||
folder: docs/ | ||
token: ${{ secrets.GITHUB_TOKEN }} |