Skip to content

Commit ae949fc

Browse files
Fix publishing (#381)
* Revert "bump version for release 0.7.0" This reverts commit da718ae. * Fix publishing * Fix release script for MacOS
1 parent da718ae commit ae949fc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/publish-on-pypi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
if: github.repository == 'stfc/janus-core' && startsWith(github.ref, 'refs/tags/v')
1313
environment:
1414
name: release
15+
permissions:
16+
# For PyPI's trusted publishing.
17+
id-token: write
1518

1619
steps:
1720
- name: Checkout repository

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "janus-core"
3-
version = "0.7.0"
3+
version = "0.6.6"
44
description = "Tools for machine learnt interatomic potentials"
55
authors = [
66
{ name = "Elliott Kasoar" },

release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
version=$1
44

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

77
git add pyproject.toml
88
git commit -m "bump version for release $version"

0 commit comments

Comments
 (0)