diff --git a/.github/workflows/deploy_documentation.yml b/.github/workflows/deploy_documentation.yml new file mode 100644 index 00000000..6d2b0f9a --- /dev/null +++ b/.github/workflows/deploy_documentation.yml @@ -0,0 +1,37 @@ +name: Deploy documentation to www.etlcpp.com + +on: + push: + branches: + - master + +jobs: + build_deploy: + name: build and deploy + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: '0.147.1' + extended: true + + - name: Build + working-directory: hugo + run: hugo --minify --cleanDestinationDir --baseURL "https://www.etlcpp.com/" + + # Deploys the site via the deploy script in the ci directory + - name: Deploy + run: source $GITHUB_WORKSPACE/ci/deploy.sh + env: + ACTIONS_DEPLOY_KEY: ${{ secrets.DOCS_BDEPLOY_KEY }} + SSH_USERNAME: ${{ secrets.DOCS_SSH_USER }} + SERVER_ADDRESS: ${{ secrets.DOCS_SSH_SERVER }} + SERVER_DESTINATION: ${{ secrets.DOCS_DEST_DIR }} + SSH_PORT: ${{ secrets.DOCS_SSH_PORT }}