Skip to content

Add basic build CI

Add basic build CI #1

Workflow file for this run

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