-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
310266b
commit b0cc329
Showing
2 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
name: Deploy Node.js App to Azure VM | ||
# name: Deploy Node.js App to Azure VM | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Set this to your default branch | ||
# on: | ||
# push: | ||
# branches: | ||
# - main # Set this to your default branch | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# jobs: | ||
# deploy: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
- name: Pull latest changes, install packages, build and run | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.AZURE_VM_IP }} | ||
username: ${{ secrets.SSH_USER }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
port: 22 | ||
script: | | ||
cd ~/apps/solana_bot/solana_sniper | ||
git pull | ||
npm install | ||
npm run build | ||
pm2 reload ecosystem.config.js || pm2 start ecosystem.config.js | ||
# - name: Pull latest changes, install packages, build and run | ||
# uses: appleboy/ssh-action@master | ||
# with: | ||
# host: ${{ secrets.AZURE_VM_IP }} | ||
# username: ${{ secrets.SSH_USER }} | ||
# key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
# port: 22 | ||
# script: | | ||
# cd ~/apps/solana_bot/solana_sniper | ||
# git pull | ||
# npm install | ||
# npm run build | ||
# pm2 reload ecosystem.config.js || pm2 start ecosystem.config.js |
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