feat: Migrate Notion public portal content to Hugo #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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 |