-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (39 loc) · 1.09 KB
/
check_homepage_build.yaml
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: Check homepage build
on:
pull_request:
paths:
- 'examples/**'
- 'docs/**'
- 'zeus/**'
- 'mkdocs.yml'
- 'docker/Dockerfile'
- '.github/workflows/check_homepage_build.yaml'
# Jobs initiated by previous pushes get cancelled by a new push.
concurrency:
group: ${{ github.ref }}-check-homepage-build
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
cache: 'pip'
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install other homepage dependencies
run: pip install '.[docs]'
- name: Build homepage
run: mkdocs build --verbose --strict
env:
BUILD_SOCIAL_CARD: true