From 9b8210c4f77a51f1a96e9177aca51907145314fb Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Sat, 4 Jan 2025 01:45:56 +0000 Subject: [PATCH 1/2] update tag pattern to include dev in changelog --- cliff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index d66a7c6..e8683ee 100644 --- a/cliff.toml +++ b/cliff.toml @@ -91,7 +91,7 @@ protect_breaking_commits = true # filter out the commits that are not matched by commit parsers filter_commits = true # regex for matching git tags -tag_pattern = "^(v[0-9]+.[0-9]+.[0-9]+)$" +tag_pattern = "^(v[0-9]+.[0-9]+.[0-9]+)(?:.dev[0-9]+)?$" # regex for skipping tags skip_tags = "v0.1.0-beta.1" # regex for ignoring tags From e50b7db16650c0d935ee49196e84fdcc265ff9c0 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Sat, 4 Jan 2025 01:48:01 +0000 Subject: [PATCH 2/2] fix publish workflow --- .github/workflows/publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2a87392..6f88d45 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,6 +49,10 @@ jobs: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} poetry publish --build + - name: Build package + run: | + poetry build + - name: Generate changelog for latest tag uses: orhun/git-cliff-action@v4.4.2 with: @@ -59,7 +63,12 @@ jobs: GITHUB_REPO: ${{ github.repository }} - name: Create release - uses: softprops/action-gh-release@v2.2.0 + uses: softprops/action-gh-release@v2.1.0 with: files: dist/* body_path: CHANGELOG.md + + - name: Publish package + run: | + poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} + poetry publish --build