File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy Beta
2-
3- on :
4- push :
5- branches : [beta]
6-
7- jobs :
8- deploy :
9- runs-on : ubuntu-latest
10- steps :
11- - name : SSH and deploy
12- uses : appleboy/ssh-action@v1.2.0
13- with :
14- host : ${{ secrets.SSH_HOST }}
15- username : ${{ secrets.SSH_USER }}
16- password : ${{ secrets.SSH_PASSWORD }}
17- port : ${{ secrets.SSH_PORT || 22 }}
18- script : |
19- cd ${{ secrets.BETA_PATH }}
20- cp .env /tmp/beta.env 2>/dev/null; cp port.txt /tmp/beta.port.txt 2>/dev/null
21- git fetch origin --prune
22- git checkout beta
23- git reset --hard origin/beta
24- cp /tmp/beta.env .env 2>/dev/null; cp /tmp/beta.port.txt port.txt 2>/dev/null
25- grep 'discord.zero-host.org' public/js/app.js || echo "⚠ DISCORD LINK NOT FOUND IN FILE"
26- head -20 port.txt 2>/dev/null || echo "⚠ port.txt missing or empty"
27- npm install
28- pm2 restart beta
1+ name : Deploy Beta
2+
3+ on :
4+ push :
5+ branches : [beta]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : SSH and deploy
12+ uses : appleboy/ssh-action@v1.2.0
13+ with :
14+ host : ${{ secrets.SSH_HOST }}
15+ username : ${{ secrets.SSH_USER }}
16+ password : ${{ secrets.SSH_PASSWORD }}
17+ port : ${{ secrets.SSH_PORT || 22 }}
18+ script : |
19+ cd ${{ secrets.BETA_PATH }}
20+ cp .env /tmp/beta.env 2>/dev/null; cp port.txt /tmp/beta.port.txt 2>/dev/null
21+ git fetch origin --prune
22+ git checkout beta
23+ git reset --hard origin/beta
24+ cp /tmp/beta.env .env 2>/dev/null; cp /tmp/beta.port.txt port.txt 2>/dev/null
25+ grep 'discord.zero-host.org' public/js/app.js || echo "⚠ DISCORD LINK NOT FOUND IN FILE"
26+ head -20 port.txt 2>/dev/null || echo "⚠ port.txt missing or empty"
27+ npm install
28+ pm2 restart beta
Original file line number Diff line number Diff line change 1- name : Deploy Main
2-
3- on :
4- push :
5- branches : [main]
6-
7- jobs :
8- deploy :
9- runs-on : ubuntu-latest
10- steps :
11- - name : SSH and deploy
12- uses : appleboy/ssh-action@v1.2.0
13- with :
14- host : ${{ secrets.SSH_HOST }}
15- username : ${{ secrets.SSH_USER }}
16- password : ${{ secrets.SSH_PASSWORD }}
17- port : ${{ secrets.SSH_PORT || 22 }}
18- script : |
19- cd ${{ secrets.MAIN_PATH }}
20- cp .env /tmp/main.env 2>/dev/null; cp port.txt /tmp/main.port.txt 2>/dev/null
21- git fetch origin --prune
22- git checkout main
23- git reset --hard origin/main
24- cp /tmp/main.env .env 2>/dev/null; cp /tmp/main.port.txt port.txt 2>/dev/null
25- npm install
26- pm2 restart zerohost-dashboard
1+ name : Deploy Main
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : SSH and deploy
12+ uses : appleboy/ssh-action@v1.2.0
13+ with :
14+ host : ${{ secrets.SSH_HOST }}
15+ username : ${{ secrets.SSH_USER }}
16+ password : ${{ secrets.SSH_PASSWORD }}
17+ port : ${{ secrets.SSH_PORT || 22 }}
18+ script : |
19+ cd ${{ secrets.MAIN_PATH }}
20+ cp .env /tmp/main.env 2>/dev/null; cp port.txt /tmp/main.port.txt 2>/dev/null
21+ git fetch origin --prune
22+ git checkout main
23+ git reset --hard origin/main
24+ cp /tmp/main.env .env 2>/dev/null; cp /tmp/main.port.txt port.txt 2>/dev/null
25+ npm install
26+ pm2 restart zerohost-dashboard
Original file line number Diff line number Diff line change 1- # Contributing
2-
3- All pull requests ** must** target the ` beta ` branch.
4-
5- Any PR targeting ` main ` directly will be closed without review.
6-
7- Once changes are validated on ` beta ` , they are merged into ` main ` by the maintainers.
1+ # Contributing
2+
3+ All pull requests ** must** target the ` beta ` branch.
4+
5+ Any PR targeting ` main ` directly will be closed without review.
6+
7+ Once changes are validated on ` beta ` , they are merged into ` main ` by the maintainers.
You can’t perform that action at this time.
0 commit comments