-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1.08 KB
/
deploy.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
45
name: Deploy Docs to Doc
on:
push:
branches:
- main
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
BuildAndMakeLive:
name: Build
runs-on: ubuntu-latest
steps:
- name: Fetch repo
uses: actions/checkout@v2
- name: Install docusaurus
run: yarn install
- name: Build docusaurus
run: yarn build
- name: Send build to doc
uses: appleboy/scp-action@master
with:
host: doc.net.fourieraudio.com
username: fourier
port: 22
key: ${{ secrets.SSH_DOC_FOURIER }}
source: "/home/runner/work/docs/docs/build"
target: "/home/fourier"
- name: Copy to live docusaurus docusaurus directory
uses: appleboy/ssh-action@master
with:
host: doc.net.fourieraudio.com
username: fourier
key: ${{ secrets.SSH_DOC_FOURIER }}
port: 22
script: |
sudo cp -r /home/fourier/github/workspace/build/* /var/www/docusaurus/live