Merge pull request #647 from UnitapApp/feature/telegram/implementation #13
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 to Server | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Disable Host Key Checking | |
run: | | |
mkdir -p ~/.ssh | |
echo "StrictHostKeyChecking no" >> ~/.ssh/config | |
- name: Push to Server | |
run: | | |
git remote add dokku [email protected]:unitap-dev | |
git fetch --unshallow origin | |
git push dokku develop -f |