-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.14 KB
/
update_gh_pages.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: Update and Deploy GitHub Pages
on:
workflow_dispatch:
push:
branches:
- master
- main
workflow_run:
workflows: ["Update Submodules", "Update API Changelog"]
types:
- completed
permissions:
contents: write
jobs:
deploy:
# k8s hosted Arc Runner not installed git for checking out submodules, see issue #2
runs-on: arc-runner-k8s
# runs-on: self-hosted
steps:
- name: Force update git
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install -y git
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions/setup-python@v4
with:
python-version: 3.x
- 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-
- run: pip install -r requirements.txt
- run: mkdocs gh-deploy --force