Skip to content

fix(os): introduce static error for unexpected env variable #67

fix(os): introduce static error for unexpected env variable

fix(os): introduce static error for unexpected env variable #67

Workflow file for this run

name: Build & upload documentation
on:
push:
branches:
- "main"
tags:
- "v*"
permissions:
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
fetch-tags: "true"
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: site/
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4