Skip to content

Merge pull request #81 from Ingenjorsarbete-For-Klimatet/feature/0.1.2 #33

Merge pull request #81 from Ingenjorsarbete-For-Klimatet/feature/0.1.2

Merge pull request #81 from Ingenjorsarbete-For-Klimatet/feature/0.1.2 #33

name: Deploy docs to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Install MkDocs
run: |
python -m pip install --upgrade pip
pip install ".[doc]"
- name: Build with MkDocs
run: |
mkdocs build -d _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
deploy-docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-docs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1