Update push.yml #58
This file contains 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
# You can find the deployment instructions in the scripts/cloud-api-demo/README.md file | |
name: Deploy to Cloud VPS | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Execute remote ssh commands | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.API_DEMO_HOST }} | |
username: ${{ secrets.API_DEMO_USERNAME }} | |
key: ${{ secrets.API_DEMO_SSH_KEY }} | |
port: ${{ secrets.API_DEMO_PORT }} | |
command_timeout: 30m | |
script: | | |
/usr/local/bin/deploy.sh | |