refactor: enverant to latest #198
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: Pages | |
on: | |
push: | |
branches: ["master"] | |
jobs: | |
github-pages: | |
name: Github Pages | |
runs-on: ubuntu-22.04 | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Ensure pip | |
run: > | |
python3 --version | |
python3 -m ensurepip | |
- name: Install requirements.txt | |
run: > | |
pip install -r requirements.txt -c constraints.txt | |
- name: Build docs | |
run: > | |
mkdocs build | |
- uses: actions/upload-pages-artifact@v1 | |
with: | |
name: github-pages | |
path: ./site | |
- name: Deploy to pages | |
uses: actions/deploy-pages@v1 | |
id: deployment |