Merge pull request #41 from telexintegrations/jc-coder #49
This file contains hidden or 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 To Server | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Deploy to Server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{secrets.SERVER_HOST}} | |
key: ${{secrets.SERVER_SSH_KEY}} | |
username: ${{secrets.SERVER_USERNAME}} | |
script: | | |
cd /var/www/jc-coder-server-monitor-integration-telex | |
# Stash changes to prevent conflicts | |
git stash | |
git pull https://github.com/telexintegrations/server-monitor-telex-integration dev | |
cd integration | |
npm install | |
export NODE_OPTIONS="--max-old-space-size=4096" | |
npm run start:prod | |
echo "Deployment to Server Completed" |