| on: |
| push: |
| paths: |
| - 'docs/*.md' |
| 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 }}/infrastructure |
| remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }} |
| remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }} |
| remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }} |
| remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }} |
| |