Add basic build CI #1
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
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+-*' | |
pull_request: | |
branches: | |
- '*' | |
types: [opened, reopened, synchronize] | |
workflow_dispatch: | |
name: ci-build | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Needed for mkdocs-git-authors-plugin | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
key: ${{ runner.os }}-arch | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install poetry | |
run: pip install -U poetry | |
- name: Install dependencies | |
run: poetry install --no-root | |
- name: Build site | |
run: mkdocs build | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs | |
path: site/* | |
retention-days: 7 | |
if-no-files-found: error |