Skip to content

Merge pull request #24 from nairobi-gophers/pdf-fix #33

Merge pull request #24 from nairobi-gophers/pdf-fix

Merge pull request #24 from nairobi-gophers/pdf-fix #33

Workflow file for this run

name: Frontend Deployment
on:
pull_request:
branches:
- main
push:
branches:
- main
- hotfix
jobs:
Deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Npm install
run: |
yarn install
- name: Npm build
run: |
yarn build
- name: Deploy to VPS
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SKEY }}
REMOTE_HOST: ${{ secrets.HOST }}
REMOTE_USER: ${{ secrets.USERNAME }}
SOURCE: "frontend/dist/"
TARGET: ${{ secrets.REMOTE_TARGET }}
- run: echo "This job's status is ${{ job.status }}."