name: 'Deploy Site (Push)' on: workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: "pages" cancel-in-progress: false env: GITHUB_REPO_INSTANCE: true jobs: build: runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v4 - name: Set up Python 3.7 uses: actions/setup-python@v5 with: python-version: 3.x - name: Create/Get Cache uses: actions/cache@v4 with: key: ${{ github.ref }} path: .cache - name: Install dependencies run: | python -m pip install --upgrade pip setuptools python -m pip install -r requirements.txt - name: Build docs run: mkdocs build - name: Configure GitHub Pages uses: actions/configure-pages@v4 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: 'site/' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4