mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-21 22:35:01 +01:00
.github/workflows/pages.yml: attempt to update site
If there are changes to the site after running the schema parsing script we should commit the changes.
This commit is contained in:
parent
ef580dfd86
commit
d6d9767e2d
10
.github/workflows/pages.yml
vendored
10
.github/workflows/pages.yml
vendored
@ -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' }}
|
||||
|
Loading…
Reference in New Issue
Block a user