-
-
Notifications
You must be signed in to change notification settings - Fork 172
32 lines (29 loc) · 942 Bytes
/
docs.yaml
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
name: GoSub Docs
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
- name: SSH setup
run: |
mkdir -p ~/.ssh
echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
env:
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
SSH_DEPLOY_KEY: ${{secrets.SSH_DEPLOY_KEY}}
- name: create main index.html
run: |
echo "<meta http-equiv=\"refresh\" content=\"0; url=https://docs.developer.gosub.io/gosub_engine/index.html\" />" > target/doc/index.html
- name: Rsync
run: rsync -avz target/doc/ [email protected]:/wwwroot/docs.developer.gosub.io/public