Skip to content

Merge pull request #21 from hemilabs/change-deploy-dir #9

Merge pull request #21 from hemilabs/change-deploy-dir

Merge pull request #21 from hemilabs/change-deploy-dir #9

Workflow file for this run

name: Deploy Hemi Uniswap
on:
workflow_dispatch:
push:
branches:
- main
jobs:
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: yarn install --immutable
- name: Build site
run: |
cd apps/web
yarn run build:production
- 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: apps/web/build/*
target: public_html/swap
rm: true
strip_components: 3