-
Notifications
You must be signed in to change notification settings - Fork 11
29 lines (29 loc) · 1.06 KB
/
build-doxygen.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
name: Doxygen
on:
push:
branches:
- 'dev'
- 'dev-sim'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install -y doxygen graphviz ssh rsync
- name: Check out repository code
uses: actions/checkout@v4
- run: cd ${{ github.workspace }} && doxygen doc/config/Doxyfile.libMagAOX
- name: Add SSH key
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p /home/runner/.ssh
echo "xwcl.science ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAqGanUWS9Wb34oCHCDX2xqhlCstMTN9c0oFoKJkYtZ3" >> /home/runner/.ssh/known_hosts
echo "${{ secrets.DEPLOY_GARY }}" > /home/runner/.ssh/github_actions
chmod 600 /home/runner/.ssh/github_actions
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add /home/runner/.ssh/github_actions
- name: Sync to magao-x.org
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
rsync -rz --delete doc/output/api/ [email protected]:/srv/www/main/docs/api/