Merge pull request #51 from hemilabs/update-rpc-url #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |