/support
: Fix broken inter-doc links (#25)
#67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |