Skip to content

Commit bcccdfa

Browse files
authored
Merge pull request #32 from openscm/fix-release
Fix up release workflow
2 parents b24c96e + 192500c commit bcccdfa

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/bump.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
git config --global user.name "$GITHUB_ACTOR"
4747
git config --global user.email "$CI_COMMIT_EMAIL"
4848
49-
BASE_VERSION=`sed -ne 's/^version = "\([0-9\.a]*\)"/\1/p' pyproject.toml`
49+
BASE_VERSION=`sed -ne 's/^version = "\([0-9\.post]*\)"/\1/p' pyproject.toml`
5050
echo "Bumping from version $BASE_VERSION"
5151
5252
# Bump
5353
uv version --bump ${{ github.event.inputs.bump_rule }}
5454
55-
NEW_VERSION=`sed -ne 's/^version = "\([0-9\.a]*\)"/\1/p' pyproject.toml`
55+
NEW_VERSION=`sed -ne 's/^version = "\([0-9\.]*\)"/\1/p' pyproject.toml`
5656
echo "Bumping to version $NEW_VERSION"
5757
5858
# Build CHANGELOG
@@ -65,12 +65,12 @@ jobs:
6565
6666
# Bump to alpha (so that future commits do not have the same
6767
# version as the tagged commit)
68-
BASE_VERSION=`sed -ne 's/^version = "\([0-9\.a]*\)"/\1/p' pyproject.toml`
68+
BASE_VERSION=`sed -ne 's/^version = "\([0-9\.]*\)"/\1/p' pyproject.toml`
6969
7070
# Bump to pre-release of next version
7171
uv version --bump post
7272
73-
NEW_VERSION=`sed -ne 's/^version = "\([0-9\.a]*\)"/\1/p' pyproject.toml`
73+
NEW_VERSION=`sed -ne 's/^version = "\([0-9\.post]*\)"/\1/p' pyproject.toml`
7474
echo "Bumping version $BASE_VERSION > $NEW_VERSION"
7575
7676
# Commit and push

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ "ubuntu-latest" ]
17-
python-version: [ "3.9" ]
17+
python-version: [ "3.11" ]
1818
runs-on: "${{ matrix.os }}"
1919
steps:
2020
- name: Check out repository
@@ -29,7 +29,7 @@ jobs:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Add version to environment
3131
run: |
32-
PROJECT_VERSION=`sed -ne 's/^version = "\([0-9\.a]*\)"/\1/p' pyproject.toml`
32+
PROJECT_VERSION=`sed -ne 's/^version = "\([0-9\.]*\)"/\1/p' pyproject.toml`
3333
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
3434
- name: Build package for PyPI
3535
run: |

changelog/32.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix release workflow after updating to uv build backend

0 commit comments

Comments
 (0)