deploy: 2024.11.01 (#144) #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |