Add action workflow for rsync to nightlies
diff --git a/.github/workflows/nightlies-rsync.yml b/.github/workflows/nightlies-rsync.yml
new file mode 100644
index 0000000..0b22fbc
--- /dev/null
+++ b/.github/workflows/nightlies-rsync.yml
@@ -0,0 +1,26 @@
+on: push
+ paths:
+ - 'docs/*.yml'
+jobs:
+ upload_to_nightlies:
+ runs-on: ubuntu-latest
+ env:
+ INFILE: docs/ghactions-publish-rsync.md
+ OUTFILE: docs/ghactions-publish-rsync.html
+ steps:
+ - uses: actions/checkout@master
+ - name: md_to_html
+ uses: docker://pandoc/core:2.9
+ with:
+ args: "--standalone --output=${{ env.OUTFILE }} ${{ env.INFILE }}"
+ - name: rsync
+ uses: burnett01/rsync-deployments@5.2
+ with:
+ switches: -avzr
+ path: docs/
+ remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}
+ remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
+ remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
+ remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
+ remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
+