.github/workflows/pages.yml: parse the schema

Try to install Python dependencies with Poetry and then parse the
schema using ./util/generate-hugo-content.py. I'm not sure if we
need to use `poetry run ...` instead.
This commit is contained in:
Alan Orth 2021-12-14 14:22:21 +02:00
parent b6c2be7960
commit 409b7782ac
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -15,8 +15,11 @@ jobs:
python-version: 3.9 python-version: 3.9
- name: Install Poetry - name: Install Poetry
uses: abatilo/actions-poetry@v2.1.4 uses: abatilo/actions-poetry@v2.1.4
- name: Poetry version - name: Install Python dependencies
run: poetry --version run: poetry install
- name: Generate Hugo content
run: |
./util/generate-hugo-content.py -i data/schema-fields.csv --clean -d
pages: pages:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.ref_name == 'main' }} if: ${{ github.ref_name == 'main' }}