-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.27 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This is the build workflow
name: Build
# Controls when the workflow will run
on:
push:
pull_request:
workflow_call:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
name: Build
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Install poetry
run: pipx install poetry==1.7.1
- uses: actions/setup-python@v5
with:
# Read python version from a file .python-version
python-version-file: ".python-version"
cache: "poetry"
- run: poetry install
# From: https://github.com/knowsuchagency/poetry-install
# - name: Install dependencies
# run: |
# pip install -U pip
# pip install poetry==1.7.1
# poetry install
- name: Setup MkDocs cache
uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Build MkDocs site
run: poetry run mkdocs build