Skip to content

Update Docs Website

Update Docs Website #1

Workflow file for this run

name: Update Docs Website
on:
workflow_dispatch:
jobs:
deploy:
name: Build & deploy docs website
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: npm run build
run: |
npm install
npm run build
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.PROD_SERVER_NONROOT_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H server.quizfreely.org >> ~/.ssh/known_hosts
- name: Rsync static files
run: |
rsync -av --delete \
-e "ssh -i ~/.ssh/id_ed25519" \
dist/ quizfreely-docs@server.quizfreely.org:/srv/quizfreely-docs/www/