Update publications generation workflow #19
1 changed files with 13 additions and 2 deletions
|
|
@ -27,7 +27,6 @@ jobs:
|
|||
uses: https://hub.datalad.org/forgejo/datalad-clone-action@v1
|
||||
with:
|
||||
repository: q02/pool-publication-page
|
||||
#ref: 40abf1d1b2636931c4d2c2173587772f6bca7b63 # be explicit
|
||||
path: code
|
||||
|
||||
- name: Install uv
|
||||
|
|
@ -36,6 +35,11 @@ jobs:
|
|||
- name: Install git-annex
|
||||
run: uv tool install git-annex
|
||||
|
||||
- name: Install qrg & dtc suites
|
||||
run: |
|
||||
uv tool install https://hub.psychoinformatics.de/datalink/query-rse-group.git
|
||||
uv tool install dump-things-pyclient
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config --global user.name "Forgejo Actions"
|
||||
|
|
@ -50,7 +54,14 @@ jobs:
|
|||
|
||||
- name: Process metadata
|
||||
run: |
|
||||
( cd ${{ steps.codecheckout.outputs.path }} && uv run main.py --outdir ${{ steps.websitecheckout.outputs.path }}/content/publications )
|
||||
cd ${{ steps.codecheckout.outputs.path }}
|
||||
uv sync
|
||||
mkdir .cache
|
||||
dtc read-pages https://pool.v0.trr379.de/api/public/records/p/TRR379Person > .cache/Person.jsonl
|
||||
dtc read-pages https://pool.v0.trr379.de/api/public/records/p/TRR379Publication \
|
||||
| qrg inline-records --api-url https://pool.v0.trr379.de/api/ -c public -p attributed_to \
|
||||
| uv run filters/enrich-via-doi.py --extras - .cache/Person.jsonl - \
|
||||
| uv run publications.py - ${{ steps.websitecheckout.outputs.path }}/content/publications
|
||||
|
||||
- name: Commit and push updates
|
||||
id: commit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue