pk web site backend deployment #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pk web site backend deployment | |
on: | |
workflow_run: | |
workflows: ["pk web site backend testing"] | |
types: | |
- completed | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }} | |
steps: | |
- name: executing remote ssh commands for update | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOSTNAME }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
script: | |
cd python.or.kr && git pull | |
- name: executing remote ssh commands for deployment | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOSTNAME }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
script: | |
cd python.or.kr && bash deploy_prod.sh | |