From b02aa234ac0824e2a7060e9175bcca7632690fa7 Mon Sep 17 00:00:00 2001 From: "Christopher K. Long" Date: Thu, 17 Apr 2025 13:39:37 +0100 Subject: [PATCH 1/2] Fixed bug where artifacts would not upload to release --- .github/workflows/release-and-publish-to-pypi.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-and-publish-to-pypi.yml b/.github/workflows/release-and-publish-to-pypi.yml index 042e429..c247adf 100644 --- a/.github/workflows/release-and-publish-to-pypi.yml +++ b/.github/workflows/release-and-publish-to-pypi.yml @@ -99,7 +99,7 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} run: | - RELEASE_NOTES=$(cat ChangeLog.md | grep -Pzo '(?<=##\sRelease\s${{ steps.version.outputs.VERSION }})[\S\s]*(?=##|$)' | tr -d '\0') + RELEASE_NOTES=$(cat ChangeLog.md | grep -Pzo '(?<=##\sRelease\s${{ steps.version.outputs.VERSION }})[\S\s]*?(?=##|$)' | tr -d '\0') if [ -z "$RELEASE_NOTES" ]; then echo "No release notes found." exit 1 @@ -112,6 +112,5 @@ jobs: # `dist/` contains the built packages, and the # sigstore-produced signatures and certificates. run: >- - gh release upload - "$GITHUB_REF_NAME" dist/** + gh release upload "v${{ steps.version.outputs.VERSION }}" dist/** --repo "$GITHUB_REPOSITORY" From e3a43b07bf01872d9abe094a8f898079453c9c7c Mon Sep 17 00:00:00 2001 From: "Christopher K. Long" Date: Thu, 17 Apr 2025 13:40:39 +0100 Subject: [PATCH 2/2] v1.1.8 --- CITATION.cff | 2 +- ChangeLog.md | 4 ++++ README.md | 2 +- pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 05cec59..ec8d0c9 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -29,5 +29,5 @@ keywords: - load - loading license: Apache-2.0 -version: 1.1.7 +version: 1.1.8 date-released: '2025-04-17' \ No newline at end of file diff --git a/ChangeLog.md b/ChangeLog.md index 220d020..dfbbdb5 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,9 @@ # [saveable-objects](README.md) Change Log +## Release 1.1.8 + +Fixed bug where artifacts would not upload to the newly created GitHub release. + ## Release 1.1.7 - GitHub workflow release generation bug. diff --git a/README.md b/README.md index fe80fb8..9b6ef7a 100644 --- a/README.md +++ b/README.md @@ -32,5 +32,5 @@ Source code can be found at: [https://github.com/Christopher-K-Long/saveable-obj ## Version and Changes -The current version is [`1.1.7`](ChangeLog.md#release-117). Please see the [Change Log](ChangeLog.md) for more +The current version is [`1.1.8`](ChangeLog.md#release-118). Please see the [Change Log](ChangeLog.md) for more details. diff --git a/pyproject.toml b/pyproject.toml index a498608..f23dc43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "saveable-objects" -version = "1.1.7" +version = "1.1.8" authors = [ { name="Christopher_K._Long", email="ckl45@cam.ac.uk" }, ]