Skip to content

Commit

Permalink
Enabled deployer to Hostinger
Browse files Browse the repository at this point in the history
  • Loading branch information
gabmontes committed Apr 4, 2024
1 parent ed28746 commit d343216
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/purefinance_deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
BASE_PATH="/pure.finance" 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/tools
rm: true

0 comments on commit d343216

Please sign in to comment.