Skip to content

Commit f5d3bea

Browse files
authored
Create release.yml
1 parent 4a20dce commit f5d3bea

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
jobs:
2+
deploy:
3+
name: Deploy Prod Release
4+
runs-on: ubuntu-latest
5+
steps:
6+
- name: Remote deploy
7+
uses: appleboy/ssh-action@master
8+
with:
9+
host: ${{ secrets.SSH_HOST }}
10+
key: ${{ secrets.SSH_KEY }}
11+
port: ${{ secrets.SSH_PORT }}
12+
username: ${{ secrets.SSH_USER }}
13+
script: |
14+
source ~/.bash_profile
15+
sudo systemctl stop codejam-prod.service
16+
sudo cp /opt/codejam/staging/codejam.io /opt/codejam/prod/
17+
sudo systemctl start codejam-prod.service
18+
19+
name: Release
20+
21+
on:
22+
release:
23+
types: [published]

0 commit comments

Comments
 (0)