forked from OpenAssetIO/OpenAssetIO
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.05 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
34
35
36
37
38
39
40
41
42
43
44
name: "Docs"
concurrency:
group: docs
cancel-in-progress: true
on:
push:
branches: [ main ]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
path: src
# The checkout action ensures the correct auth tokens
# are set in the repo so we can push. We will pass
# this path to the deploy stage to use instead of
# its own temporary checkout.
- name: Checkout docs branch
uses: actions/checkout@v4
with:
path: target
ref: docs
- name: Build
run: |
make -C src/doc/doxygen
- name: Deploy
run: |
# Global means we don't need hop around the checkouts to set this
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
# Pass the path to the actions/checkout@v4 docs branch checkout
OPENASSETIO_DOCS_REPO_DIR=`pwd`/target make -C src/doc/doxygen deploy