Skip to content

ci: Bump fsfe/reuse-action from 4 to 5 #44

ci: Bump fsfe/reuse-action from 4 to 5

ci: Bump fsfe/reuse-action from 4 to 5 #44

Workflow file for this run

# SPDX-FileCopyrightText: Red Hat
# SPDX-License-Identifier: MIT
name: GitHub pages
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: "build documentation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: "pip"
cache-dependency-path: docs/requirements.txt
- name: Install docs requirements
run: pip install -r docs/requirements.txt
- name: Generate documentation
run: |
mkdocs build
- name: Archive generated documentation
uses: actions/upload-pages-artifact@v3
with:
path: site/
deploy:
name: "deploy documentation"
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4