fix: add missing backend env vars to GH Actions workflow patches (#284) #38
This file contains hidden or 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 Documentation to Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: registry.access.redhat.com/ubi9/ubi-minimal:latest | |
| steps: | |
| - name: Install git and tar | |
| run: | | |
| microdnf install -y git tar | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Python and dependencies | |
| run: | | |
| microdnf install -y python3.11 python3.11-pip | |
| python3.11 -m pip install --upgrade pip | |
| python3.11 -m pip install -r requirements-docs.txt | |
| - name: Build documentation | |
| run: | | |
| python3.11 -m mkdocs build --strict | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./site | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |