Skip to content

Merge branch 'production' of https://github.com/fsek/farad into produ… #12

Merge branch 'production' of https://github.com/fsek/farad into produ…

Merge branch 'production' of https://github.com/fsek/farad into produ… #12

Workflow file for this run

name: Deploy Farad
on:
push:
branches:
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- name: Get SSH key and set permissions
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Deploy using SCP
run: scp -o StrictHostKeyChecking=no \
~/.ssh/id_rsa \
-r ./dist/* \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/test