Update package metadata #5
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: Build docs | |
on: | |
push: | |
branches: | |
- "main" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# 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 | |
env: | |
python-version: "3.11" | |
plone-version: "6.0-latest" | |
jobs: | |
build: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
# Setup Plone and Python | |
- name: Setup Plone ${{ env.plone-version }} with Python ${{ env.python-version }} | |
id: setup | |
uses: plone/[email protected] | |
with: | |
python-version: ${{ env.python-version }} | |
plone-version: ${{ env.plone-version }} | |
# Install plone.distribution and the requirements for documentation | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements-docs.txt | |
# Build the documentation | |
- name: Build Documentation | |
run: | | |
sphinx-build -b html docs docs/_build/html | |
# Upload artifact to pages | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'docs/_build/html' | |
# Deploy to GitHub pages | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |