Skip to content

Commit 0863125

Browse files
committed
harden workflow
1 parent b51c2fc commit 0863125

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/pypi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
19+
ref: ${{ github.ref }} # <<— checkout the tag that triggered the release
1920

2021
# Set up Python
2122
- uses: actions/setup-python@v4

miepython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"_pi_tau",
9393
)
9494

95-
__version__ = "3.0.1"
95+
__version__ = "3.0.2"
9696
__author__ = "Scott Prahl"
9797
__email__ = "scott.prahl@oit.edu"
9898
__copyright__ = "2017-25, Scott Prahl"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "miepython"
7-
version = "3.0.0"
7+
version = "3.0.2"
88
description = "Mie scattering of a plane wave by a sphere"
99
requires-python = ">=3.8"
1010
readme = { file = "README.rst", content-type = "text/x-rst" }

release.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Releasing a new version
66
# update the version in miepython/__init__.py
77
git commit miepython/__init__.py -m 'update version'
88
git push
9+
10+
# fix version in both __init__.py AND pyproject.toml
911

1012
# update CHANGELOG.rst
1113
git shortlog 3.0.0..HEAD

0 commit comments

Comments
 (0)