Skip to content

Commit a6915a8

Browse files
authored
Merge pull request #15 from darjeeling/main
fix workflow
2 parents 6854455 + 5f4d21f commit a6915a8

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/deploy.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
name: pk web site backend deployment
22

33
on:
4-
workflow_run:
5-
workflows: ["pk web site backend testing"]
6-
types: [completed]
7-
branches: [main]
4+
push:
5+
branches:
6+
- main # main 브랜치에 푸시될 때만 실행
87

98
jobs:
109
deploy:
1110
runs-on: ubuntu-latest
12-
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
11+
1312
steps:
1413
- name: executing remote ssh commands for update
1514
uses: appleboy/[email protected]
1615
with:
1716
host: ${{ secrets.HOSTNAME }}
1817
username: ${{ secrets.USERNAME }}
1918
key: ${{ secrets.KEY }}
20-
script:
19+
script: |
2120
cd python.or.kr && git pull
2221
2322
- name: executing remote ssh commands for deployment
@@ -26,6 +25,5 @@ jobs:
2625
host: ${{ secrets.HOSTNAME }}
2726
username: ${{ secrets.USERNAME }}
2827
key: ${{ secrets.KEY }}
29-
script:
28+
script: |
3029
cd python.or.kr && bash deploy_prod.sh
31-

0 commit comments

Comments
 (0)