-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
4 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 |
---|---|---|
|
@@ -85,12 +85,22 @@ jobs: | |
echo "new_version: '${new_version}'" | ||
echo "new_version=${new_version}" >> $GITHUB_ENV # Save env variable for later steps | ||
- name: Update CITATION.cff | ||
shell: bash | ||
env: | ||
timestamp: ${{ github.event.head_commit.timestamp }} | ||
run: | | ||
new_date=${timestamp:0:10} | ||
sed -i -- "s/^version:.*/version: ${new_version}/" CITATION.cff | ||
sed -i -- "s/^date-released:.*/date-released: ${new_date}/" CITATION.cff | ||
echo "Updated CITATION.cff with version ${new_version} and date ${new_date}" | ||
- name: Tag and push new version | ||
shell: bash | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add pyproject.toml | ||
git add CITATION.cff quaternionic/__version__.py | ||
git commit -m "Bump version to v${new_version}" | ||
git tag -a "v${new_version}" -m "Version ${new_version}" | ||
git status | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it as below." | ||
authors: | ||
- family-names: Boyle | ||
given-names: Michael | ||
orcid: https://orcid.org/0000-0002-5075-5116 | ||
title: "The quaternionic package" | ||
license: MIT | ||
doi: 10.5281/zenodo.4097227 | ||
version: 1.0.6 | ||
date-released: 2023-02-07 |
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "1.0.6" |