-
Notifications
You must be signed in to change notification settings - Fork 51
30 lines (22 loc) · 850 Bytes
/
deploy.yml
File metadata and controls
30 lines (22 loc) · 850 Bytes
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: Deploy API to Ninjastorm
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Doxygen
run: sudo apt-get update && sudo apt-get install -y doxygen
- name: Generate Doxygen Documentation
run: doxygen Doxyfile
- name: Set up SSH
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.DEPLOY_NINJASTORM_KEY }}
- name: Copy documentation to server
run: |
scp -o StrictHostKeyChecking=no -r ./doc/html/* octobot@ninjastorm.firelab.org:/tmp/
ssh octobot@ninjastorm.firelab.org "sudo rm -rf /var/www/html/windninjaapi/*"
ssh octobot@ninjastorm.firelab.org "sudo mv /tmp/* /var/www/html/windninjaapi/"