Skip to content

Update Unit Tests instructions for being more accurate #11

Update Unit Tests instructions for being more accurate

Update Unit Tests instructions for being more accurate #11

Workflow file for this run

name: CD_Publish
on:
#workflow_run:
# workflows: CI_build
# branches: master
# types: completed
##... the if below would start with `github.event.workflow_run_conclusion == 'success' &&`
push:
branches:
- 'master'
workflow_dispatch:
jobs:
deploy:
name: Continuous Deployment to Publish Online User Manual Website
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'notepad-plus-plus' }}
steps:
- name: 🚚 Checkout repo
uses: actions/checkout@v4
- name: 📡 Get Hugo-Extended v0.57.2
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.57.2'
extended: true
- name: 🔨 Build into ./public
working-directory: .
run: hugo --theme book
- name: 🎉 Deploy to npp-user-manual.org
uses: wlixcc/[email protected]
with:
username: ${{ secrets.USERMANUAL_USERNAME }}
server: ${{ secrets.USERMANUAL_HOST }}
port: ${{ secrets.USERMANUAL_PORT }}
ssh_private_key: ${{ secrets.USERMANUAL_KEY }}
delete_remote_files: false
local_path: './public/*'
remote_path: '/var/www/npp-user-manual.org/public_html/'