Merge branch 'apidoc' of github.com:RecyThing/RecyThing-API into apidoc #27
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 Swagger to Server | |
on: | |
push: | |
branches: | |
- apidoc | |
jobs: | |
deploy-swagger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Connect to server using SSH | |
uses: appleboy/ssh-action@v0.1.10 | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
port: ${{ secrets.PORT }} | |
script: | | |
cd RecyThing-API/ | |
git pull origin apidoc | |
rm -rf /var/www/html/swagger | |
cp -r swagger /var/www/html/ | |