Skip to content

Merge pull request #654 from EnergySystemsModellingLab/unit-type-fixes #31

Merge pull request #654 from EnergySystemsModellingLab/unit-type-fixes

Merge pull request #654 from EnergySystemsModellingLab/unit-type-fixes #31

Workflow file for this run

name: Build and publish docs
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: ./.github/actions/generate-docs
- name: Install mdBook
run: cargo install mdbook
- name: Build docs with mdBook
run: |
mdbook build
# Put API documentation in with book
rm -r book/api/*
mv target/doc/* book/api
- name: Setup pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: book
deploy:
name: 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