mirror of
https://github.com/ETLCPP/etl.git
synced 2026-07-30 08:16:19 +08:00
* Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Workflow for deploying documentation * Removed mention of 'SCP' * Added final newline * Removed old script * Test alternative 'copy docs to website' job. * Updated to burnett01/rsync-deployments@8.0.5 as 7.0.2 is deprecated * Removed test branch from the 'push' list --------- Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Deploy documentation via SFTP
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ./hugo
|
|
|
|
steps:
|
|
# Check out the repository code
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
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 }}
|