-
Notifications
You must be signed in to change notification settings - Fork 2.1k
39 lines (37 loc) · 1.17 KB
/
deploy_docs.yml
File metadata and controls
39 lines (37 loc) · 1.17 KB
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
name: Build Docs
on:
push:
branches:
- master
paths:
- 'doc/guides/**'
- 'doc/starlight/**'
- 'CODE_OF_CONDUCT.md'
- 'GOVERNANCE.md'
- 'CONTRIBUTING.md'
- 'CODING_CONVENTIONS*.md'
- 'SECURITY.md'
- 'release-notes.txt'
jobs:
build-docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: doc/starlight
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Build documentation
run: make build
- name: Deploy to riot-os.org server
uses: burnett01/rsync-deployments@v8
with:
switches: -avzr --delete
path: doc/starlight/dist/
remote_path: /
remote_host: ${{ secrets.SSH_GUIDES_REMOTE_HOST }}
remote_port: ${{ secrets.SSH_GUIDES_REMOTE_PORT }}
remote_user: ${{ secrets.SSH_GUIDES_REMOTE_USER }}
remote_key: ${{ secrets.SSH_GUIDES_PRIVATE_KEY }}