From 8fc9779ce6b3efd59357883c0c66f227cf9aa8f7 Mon Sep 17 00:00:00 2001 From: Joshua Melville Date: Tue, 5 Oct 2021 12:50:12 +0100 Subject: [PATCH 1/2] add rsync step --- .github/workflows/github-pages.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 4824ed2d..bb51427b 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -26,3 +26,17 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./_site + name: DEPLOY + - name: rsync deployments + uses: burnett01/rsync-deployments@5.1 + with: + switches: -avzr --delete + path: ./_site + remote_path: /var/www/documentation.networkcanvas.com/ + remote_host: networkcanvas.com + remote_user: deploy + remote_key: ${{ secrets.DEPLOY_PK }} +on: + push: + branches: + - master From 35cc9b874fc68ccf43331fe1f567a9320578b3ac Mon Sep 17 00:00:00 2001 From: Joshua Melville Date: Tue, 5 Oct 2021 12:51:47 +0100 Subject: [PATCH 2/2] remove incorrectly formatted action --- .github/workflows/github-pages.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index bb51427b..501278a3 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -36,7 +36,3 @@ jobs: remote_host: networkcanvas.com remote_user: deploy remote_key: ${{ secrets.DEPLOY_PK }} -on: - push: - branches: - - master