Merge pull request #84 from zkfairdomains/test #20
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: Build & Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy NodeJS App | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
port: ${{ secrets.SSH_PORT }} | |
key: ${{ secrets.SSH_KEY }} | |
username: ${{ secrets.SSH_USERNAME }} | |
passphrase: ${{ secrets.SSH_PASSPHRASE }} | |
script: | | |
git clone https://github.com/zkfairdomains/fns-app.git | |
cd fns-app/ | |
git pull origin | |
corepack enable | |
yarn install | |
yarn build | |
cp -rf build/* /var/www/html | |
echo 'Deployment successful...' | |