-
-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix out-of-date citation file by uploading to Zenodo (#3825)
* fix out-of-date citation file by uploading to Zenodo * try Zenodo ID of version 2.0.0
- Loading branch information
1 parent
68b56d1
commit ee5d136
Showing
2 changed files
with
12 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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\//}) | ||
|
||
|
@@ -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 | ||
|
This file was deleted.
Oops, something went wrong.