-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 1.01 KB
/
docs.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
name: docs
on:
push:
branches:
- main
paths:
- compiler/docs
- mkdocs.yml
- .github/workflows/docs.yml
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
python-version: 3.x
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- run: sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
- run: pip install git+https://${{ secrets.MK_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git
working-directory: compiler
- run: pip install mkdocs-git-revision-date-localized-plugin
working-directory: compiler
- run: mkdocs gh-deploy --force
working-directory: compiler