-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (47 loc) · 1.4 KB
/
deploy.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
46
47
48
49
name: deploy
on:
push:
branches:
- main
jobs:
deploy:
if: startsWith(github.event.head_commit.message, 'deploy')
name: deploy
runs-on: ubuntu-latest
steps:
- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Authenticate with GitHub
env:
GH_PAT: ${{ secrets.DASCHBOT_PAT }}
run: |
echo "https://${GH_PAT}:@github.com" > ~/.git-credentials
git config --global credential.helper store
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # necessary for git-revision-date-localized-plugin
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
make install-requirements
sudo apt-get install graphviz
- name: build graphviz figures
run: make graphvizfigures
- name: Install just
uses: extractions/setup-just@v2
- name: Setup Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Update OpenAPI docs
run: make openapi-update
- name: Deploy docs
run: make deploy