Skip to content

Merge pull request #44 from hemilabs/fix-layout #19

Merge pull request #44 from hemilabs/fix-layout

Merge pull request #44 from hemilabs/fix-layout #19

name: Deploy Purefinance
on:
workflow_dispatch:
push:
branches:
- master
jobs:
purefinance-build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install Dependencies
run: npm ci
- name: Build site
run: |
cd site
npm run build
- name: Copy files to Hostinger
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOSTINGER_HOST }}
username: ${{ secrets.HOSTINGER_USER }}
port: ${{ secrets.HOSTINGER_PORT }}
key: ${{ secrets.HOSTINGER_SSH_KEY }}
source: site/out/*
target: public_html/pure.finance
rm: true
strip_components: 2