Skip to content

Commit f38b394

Browse files
Merge pull request #5 from Couchbase-Ecosystem/DA-1079-Update-Langgraph-Checkpointer-Release-on-Tags
Update Langgraph checkpointer to release on tags rather than on every merge to main
2 parents eaad923 + 179eb74 commit f38b394

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish Package to PyPI
22
on:
33
push:
4-
branches:
5-
- main
4+
tags:
5+
- "v*"
66
workflow_dispatch:
77

88
jobs:
@@ -29,17 +29,13 @@ jobs:
2929
- name: Hatch build
3030
run: hatch build
3131

32-
- name: Get hatch version
33-
id: hatch_version_step
34-
run: echo "VERSION=$(hatch version)" >> $GITHUB_OUTPUT
35-
3632
- name: Publish release distributions to PyPI
3733
uses: pypa/gh-action-pypi-publish@release/v1
3834

3935
- name: Create GitHub Release
4036
id: create_release
4137
uses: softprops/action-gh-release@v2
4238
with:
43-
tag_name: v${{ steps.hatch_version_step.outputs.VERSION }}
39+
tag_name: ${{ github.ref_name }}
4440
draft: false
4541
prerelease: false

0 commit comments

Comments
 (0)