Skip to content

deploy workflow: fix permissions #5

deploy workflow: fix permissions

deploy workflow: fix permissions #5

name: Deploy Sphinx documentation to Pages
on:
push:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: docker.io/sphinxdoc/sphinx:8.0.2
steps:
- uses: actions/checkout@v4
- name: Build static files
id: build
run: make
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: _build/html/
# Deployment job
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4