Skip to content

Merge pull request #23 from claudioperez/printA #49

Merge pull request #23 from claudioperez/printA

Merge pull request #23 from claudioperez/printA #49

Workflow file for this run

name: Sphinx build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build HTML
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "."
# - name: Add NoJekyll
# run: touch build/html/.nojekyll
# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# with:
# name: html-docs
# path: build/html/
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: build/html/
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/main'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: _build/html
#
# Deployment job
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
if: github.ref == 'refs/heads/master'
uses: actions/deploy-pages@v4