diff --git a/.github/workflows/swagger-deploy.yml b/.github/workflows/swagger-deploy.yml new file mode 100644 index 0000000..add6773 --- /dev/null +++ b/.github/workflows/swagger-deploy.yml @@ -0,0 +1,25 @@ +# /.github/workflows/integration-deploy.yml +# Warning: deletes all files on uberspace which are not in repo, use without --delete if unsure +name: Deploy integration +on: + push + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + uses: php-actions/composer@v6 + with: + dev: no + args: --profile --ignore-platform-reqs --working-dir=code + - name: rsync deployments + uses: burnett01/rsync-deployments@6.0.0 + with: + switches: -avzr + path: /documentation/swagger/ + remote_path: /home/${{ secrets.UBERSPACE_USER }}/html/${{ secrets.SWAGGER }} + remote_host: ${{ secrets.UBERSPACE_HOST }} + remote_user: ${{ secrets.UBERSPACE_USER }} + remote_key: ${{ secrets.DEPLOY_KEY_PRIVATE }} \ No newline at end of file diff --git a/code/public/swagger.yaml b/documentation/swagger/swagger.yaml similarity index 100% rename from code/public/swagger.yaml rename to documentation/swagger/swagger.yaml