Skip to content

Merge branch 'apidoc' of github.com:RecyThing/RecyThing-API into apidoc #27

Merge branch 'apidoc' of github.com:RecyThing/RecyThing-API into apidoc

Merge branch 'apidoc' of github.com:RecyThing/RecyThing-API into apidoc #27

Workflow file for this run

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/