Updated deploy script #8
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
name: Deploy | |
# Trigger the workflow on push and | |
# pull request events on the production branch | |
on: | |
push: | |
branches: | |
- production | |
pull_request: | |
branches: | |
- production | |
# Authenticate to the the server via ssh | |
# and run our deployment script | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Deploy to server | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
port: ${{ secrets.PORT }} | |
key: ${{ secrets.SSHKEY }} | |
script: "cd /home/UpdateServer/web/update.techscode.com/public_html/ && sh deploy.sh" |