Skip to content

Merge pull request #51 from hemilabs/update-rpc-url #22

Merge pull request #51 from hemilabs/update-rpc-url

Merge pull request #51 from hemilabs/update-rpc-url #22

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
env:
PUBLIC_URL: ""
- 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