Skip to content

Commit

Permalink
Fix out-of-date citation file by uploading to Zenodo (#3825)
Browse files Browse the repository at this point in the history
* fix out-of-date citation file by uploading to Zenodo

* try Zenodo ID of version 2.0.0
  • Loading branch information
falkoschindler authored Oct 4, 2024
1 parent 68b56d1 commit ee5d136
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 49 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,6 @@ jobs:
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests PyYAML
- name: Update Citation.cff
env:
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
run: python .github/workflows/update_citation.py $(echo ${GITHUB_REF/refs\/tags\//})

- name: Update version in pyproject.toml
run: python .github/workflows/update_pyproject.py $(echo ${GITHUB_REF/refs\/tags\//})

Expand All @@ -139,9 +129,20 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add CITATION.cff pyproject.toml
git commit -m "Update citation.cff and pyproject.toml"
git commit -m "Update pyproject.toml"
git push origin HEAD:main
- name: Upload to Zenodo
id: release
uses: megasanjay/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
zenodo_token: ${{ secrets.ZENODO_TOKEN }}
zenodo_deposition_id: 13623775
zenodo_publish: true
commit_message: "Update CITATION.cff"
citation_cff: true

verify:
needs: docker
runs-on: ubuntu-latest
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/update_citation.py

This file was deleted.

0 comments on commit ee5d136

Please sign in to comment.