Merge pull request #230 from antaliadom-team/feature/db_optimization #136
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 api documentation to the test server | |
on: | |
push: | |
branches: | |
- docs | |
- apidocs | |
- feature/apidocs | |
- feature/docs | |
- dev | |
jobs: | |
deploy: | |
name: Deploy to test server | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Executing remote ssh commands to deploy | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.DEV_HOST }} | |
username: ${{ secrets.DEV_USER }} | |
key: ${{ secrets.DEV_KEY }} | |
port: ${{ secrets.DEV_PORT }} | |
script: | | |
cd ./antalyadom | |
git fetch | |
git checkout -m origin/${{ github.ref_name }} docs/ |