Skip to content

Commit 4754483

Browse files
committed
refactor(ci): update staging deploy workflow
1 parent 0569720 commit 4754483

2 files changed

Lines changed: 27 additions & 55 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Deploy (staging)
2+
3+
on:
4+
push:
5+
branches:
6+
- staging
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: staging
13+
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- name: Deploy via SSH
19+
uses: appleboy/ssh-action@v1.2.5
20+
with:
21+
host: ${{ secrets.HOST }}
22+
username: ${{ secrets.USER }}
23+
key: ${{ secrets.SSH_KEY }}
24+
envs: PATH
25+
script: |
26+
set -e
27+
sudo /opt/relaysms/relaysms-gateway-server/manage.sh update

.github/workflows/staging-deploy.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)