diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c9bc1bf5..3e6f8180 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -20,6 +20,16 @@ jobs: - name: Generate Hugo content run: | poetry run ./util/generate-hugo-content.py -i ./data/schema-fields.csv --clean -d + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + - name: Build Hugo site + run: hugo + working-directory: site + - name: Commit Hugo content + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Automated commit with site updates + file_pattern: site/* pages: runs-on: ubuntu-latest if: ${{ github.ref_name == 'main' }}