forked from valhalla/valhalla
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 943 Bytes
/
gh-pages.yml
File metadata and controls
42 lines (35 loc) · 943 Bytes
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
name: Docs
on:
push:
branches:
- master
pull_request:
paths:
- '**.md'
- 'docs/**'
- '.github/workflows/gh-pages.yml'
jobs:
build-deploy:
name: Build and deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies 🔧
working-directory: docs
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Build docs 🏗️
working-directory: docs
run: |
mkdocs build --strict
- name: Deploy to GitHub Pages 🚀
if: ${{ github.event_name == 'push' && github.repository_owner == 'valhalla' }}
working-directory: docs
run: |
mkdocs gh-deploy --force --strict