This repository has been archived by the owner on May 10, 2024. It is now read-only.
Merge pull request #8 from rocket-connect/feat/add-foundation-link #38
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: Node Github CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH and deploy node app | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
cd graphql-events | |
git reset --hard | |
git pull origin main | |
pnpm install | |
API_URL="https://graphql-events.org" pnpm build --force | |
pm2 restart graphql-events.org |