Skip to content

Commit

Permalink
Enabled deployer to Hostinger
Browse files Browse the repository at this point in the history
  • Loading branch information
dhidalgX committed Apr 4, 2024
1 parent ed28746 commit fa6924c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/purefinance_deployment copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy Purefinance

on:
workflow_dispatch:
push:
branches:
- main

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: '18'

- 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 fa6924c

Please sign in to comment.