Skip to content

Commit

Permalink
Update DOI in citation file; add version update in citation to releas…
Browse files Browse the repository at this point in the history
…e action
  • Loading branch information
DhanshreeA committed Sep 30, 2024
1 parent f96af14 commit 40dd801
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ jobs:
git config --local user.name "ersilia-bot"
git tag -a "v${{ steps.version.outputs.VERSION }}" -m "v${{ steps.version.outputs.VERSION }}"
- name: Update version in CITATION.cff
id: update-citation
env:
VERSION: ${{ steps.version.outputs.VERSION }}
run: |
pip install PyYAML
python -c "
import os
import yaml
with open('CITATION.cff', 'r') as file:
content = file.read()
citation = yaml.safe_load(file)
citation['version'] = os.environ['VERSION']
with open('CITATION.cff', 'w') as file:
yaml.dump(citation, file)
"
- name: Commit and push changes done to the static version file and pyproject.toml
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # pin@v1.5
with:
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ authors:
orcid: "https://orcid.org/0000-0002-9906-6936"
title: "Ersilia Model Hub: a repository of AI/ML models for neglected tropical diseases"
version: 1.0.0
doi: 10.5281/zenodo.7274646
doi: 10.5281/zenodo.7274645
date-released: 2022-11-02
url: "https://github.com/ersilia-os/ersilia"

0 comments on commit 40dd801

Please sign in to comment.