Skip to content

Commit

Permalink
Fix publishing (#381)
Browse files Browse the repository at this point in the history
* Revert "bump version for release 0.7.0"

This reverts commit da718ae.

* Fix publishing

* Fix release script for MacOS
  • Loading branch information
ElliottKasoar authored Jan 15, 2025
1 parent da718ae commit ae949fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-on-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
if: github.repository == 'stfc/janus-core' && startsWith(github.ref, 'refs/tags/v')
environment:
name: release
permissions:
# For PyPI's trusted publishing.
id-token: write

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "janus-core"
version = "0.7.0"
version = "0.6.6"
description = "Tools for machine learnt interatomic potentials"
authors = [
{ name = "Elliott Kasoar" },
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

version=$1

sed -i "s;^version =.*;version = \"$version\";g" pyproject.toml
sed -i.bak "s;^version =.*;version = \"$version\";g" pyproject.toml && rm pyproject.toml.bak

git add pyproject.toml
git commit -m "bump version for release $version"
Expand Down

0 comments on commit ae949fc

Please sign in to comment.