etl/.github/workflows/deploy-etl-documentation.yml
Drew Rife d12874c24a
CI: cancel superseded workflow runs (#1557)
* Update _index.md

* Update _index.md

* ci: cancel superseded workflow runs

* ci: serialize documentation deployments

---------

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-08-20 20:20:24 +01:00

49 lines
1.2 KiB
YAML

name: Deploy documentation via SFTP
on:
push:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./hugo
steps:
# Check out the repository code
- name: Checkout code
uses: actions/checkout@v6.0.3
with:
submodules: true
fetch-depth: 0
# Install and set up Hugo
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
# Build the static site
- name: Build Hugo Site
run: hugo --cleanDestinationDir --minify --baseURL "https://www.etlcpp.com/"
# Upload the files via rsync.
- name: Deploy via rsync
uses: burnett01/rsync-deployments@8.0.5
with:
switches: -avzr --delete
path: hugo/public/
remote_path: ${{ secrets.DOCS_DEST_DIR }}
remote_host: ${{ secrets.DOCS_SSH_SERVER }}
remote_port: ${{ secrets.DOCS_SSH_PORT }}
remote_user: ${{ secrets.DOCS_SSH_USER }}
remote_key: ${{ secrets.DOCS_DEPLOY_KEY }}