Skip to content

Merge pull request #67 from tanhongit/deploy #39

Merge pull request #67 from tanhongit/deploy

Merge pull request #67 from tanhongit/deploy #39

Workflow file for this run

name: Deploy Server
on:
push:
branches: [ deploy ]
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
deploy_test:
name: Deploy to Test Server
runs-on: self-hosted
needs: shellcheck
steps:
- name: Deploy to Remote Host
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.REMOTE_PORT }}
script: |
cd /home/tannp/telegram-bot-github-notify
git reset --hard HEAD
git pull origin deploy
composer update
cd /home/tannp/githubworkrun/telegram-bot-github-notify
git reset --hard HEAD
git pull origin deploy
composer update