Skip to content

feat: Migrate Notion public portal content to Hugo #24

feat: Migrate Notion public portal content to Hugo

feat: Migrate Notion public portal content to Hugo #24

Workflow file for this run

---
name: Deploy Website
on: # yamllint disable-line rule:truthy
push:
paths-ignore:
- README.md
- LICENSE
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build site
run: |
docker run --rm \
-v "$PWD":/src \
-w /src \
hugomods/hugo:reg-0.147.9 hugo
- name: Validate pages
run: |
find content -name '*.md' \
-exec printf 'Checking %s\n' {} \; \
-exec ./validate-page.sh {} \;
deploy:
runs-on: ubuntu-latest
needs: validate
steps:
# Run Hugo on the server to build the site
- name: Build Site with Hugo
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DENSEBOT_PRIVATE_SSH_KEY }}
script_stop: true
script: cd ~/denseanalysis-org && ./deploy.sh