Commit Graph

25 Commits

Author SHA1 Message Date
Alan Orth 3288d2fe4e
.github/workflows/pages.yml: use separate steps for RDF and site
This way we can track changes and make commits separately for chan-
ges to the RDF files and site content.
2022-02-16 21:35:07 +03:00
Alan Orth a98ca084f7
.github/workflows/pages.yml: minor style issue
No functional difference, but keep the style consistent.
2022-02-16 21:22:16 +03:00
Alan Orth 37dd4a87d1
.github/workflows/pages.yml: separate RDF step 2022-02-16 21:21:24 +03:00
Marie-Angélique Laporte 6be2c120c4 run python script using poetry 2022-02-16 14:03:18 +01:00
Marie-Angélique Laporte b6e88d59fe adding rdf refresh to action 2022-02-16 09:17:42 +01:00
Alan Orth 7ed52b703a
.github/workflows/pages.yml: quote Python version
Otherwise, in JSON, it gets interpreted as an integer (3.1).

See: https://github.com/actions/setup-python/issues/160
2022-01-06 14:02:13 +02:00
Alan Orth 9116734205
.github/workflows/pages.yml: use Python 3.10
It's what I use locally and it's the latest supported version so it
will let this project work a bit longer as time goes on if we start
with the latest version possible.
2022-01-06 13:50:08 +02:00
Alan Orth d96be74836 .github/workflows/pages.yml: only commit on main
Don't automatically commit changes to the Hugo site content unless
we are on the main branch. This is unnecessary and makes it tricky
to work on feature branches or pull requests.
2022-01-06 13:01:01 +02:00
Alan Orth dc68d4316a .github/workflows/pages.yml: parse FSC schema 2021-12-21 19:07:16 +02:00
Alan Orth baf534efd5
Update references to shema-fields.csv 2021-12-20 12:04:11 +02:00
Alan Orth 3961c3e483
.github/workflows/pages.yml: try to git pull
We should git pull before we update the site.
2021-12-14 15:14:37 +02:00
Alan Orth 2eeaa63cce
.github/workflows/pages.yml: add more comments 2021-12-14 14:58:01 +02:00
Alan Orth 99be04a784
.github/workflows/pages.yml: update dependencies
Only attempt to update the site content if parsing the schema and
updating the site was successful.
2021-12-14 14:54:54 +02:00
Alan Orth 871dca1a49
.github/workflows/pages.yml: add comments 2021-12-14 14:54:07 +02:00
Alan Orth 76294adab6
.github/workflows/pages.yml: retab 2021-12-14 14:48:06 +02:00
Alan Orth d6d9767e2d
.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.
2021-12-14 14:46:16 +02:00
Alan Orth ef580dfd86
.github/workflows/pages.yml: use poetry run 2021-12-14 14:24:38 +02:00
Alan Orth 409b7782ac
.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.
2021-12-14 14:22:21 +02:00
Alan Orth b6c2be7960
.github/workflows/pages.yml: try default Poetry
It's better if we don't have to specify an exact version for now.
2021-12-14 14:21:43 +02:00
Alan Orth 6fa4791eaf
.github/workflows/pages.yml: Fix syntax
It's due to the indentation (missing the with:).
2021-12-14 14:14:35 +02:00
Alan Orth 0ccf573ace
.github/workflows/pages.yml: syntax error
Not sure why this line has a syntax error...?
2021-12-14 14:13:36 +02:00
Alan Orth 4e92f0b8cd
.github/workflows/pages.yml: adjust branches
Run Python job steps on all branches, but only push to GitHub pages
from main.

See: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
See: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
2021-12-14 14:09:58 +02:00
Alan Orth 22b78ea149
.github/workflows/pages.yml: add Python for parsing
Attempt to add Python and Poetry so we can run the schema parsing
scripts to generate the site content and the RDF.
2021-12-14 14:02:16 +02:00
Alan Orth d2ee0b5770
.github/workflows/pages.yml: Deploy to site branch 2021-11-01 08:41:17 +02:00
Alan Orth 992fda8f85
Add GitHub workflow to publish to Pages
It seems we can only enable GitHub Pages with subdirectories at the
root of the project. Ours is in ./site/docs so I think we need to
use an example like Hexo's to publish with a GitHub workflow.

See: https://hexo.io/docs/github-pages
2021-11-01 08:38:05 +02:00