Skip to content

Commit 784054e

Browse files
committed
deploy
1 parent d64de12 commit 784054e

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: pk web site backend deployment
2+
3+
on:
4+
workflow_run:
5+
workflows: ["pk web site backend testing"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
13+
steps:
14+
- name: executing remote ssh commands for update
15+
uses: appleboy/[email protected]
16+
with:
17+
host: ${{ secrets.HOSTNAME }}
18+
username: ${{ secrets.USERNAME }}
19+
key: ${{ secrets.KEY }}
20+
script:
21+
cd python.or.kr && git pull
22+
23+
- name: executing remote ssh commands for deployment
24+
uses: appleboy/[email protected]
25+
with:
26+
host: ${{ secrets.HOSTNAME }}
27+
username: ${{ secrets.USERNAME }}
28+
key: ${{ secrets.KEY }}
29+
script:
30+
cd python.or.kr && bash deploy_prod.sh
31+

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The name of the action
2-
name: pao web site backend testing
2+
name: pk web site backend testing
33
# When the action is triggered
44
on:
55
push:

0 commit comments

Comments
 (0)