Skip to content

Merge pull request #148 from lucyjemutai/fix-footer #301

Merge pull request #148 from lucyjemutai/fix-footer

Merge pull request #148 from lucyjemutai/fix-footer #301

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18.17.0'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: cd /usr/knhts/moh-knhts-web && sh deploy.sh &>/dev/null