We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eaad923 + 179eb74 commit f38b394Copy full SHA for f38b394
.github/workflows/release.yaml
@@ -1,8 +1,8 @@
1
name: Publish Package to PyPI
2
on:
3
push:
4
- branches:
5
- - main
+ tags:
+ - "v*"
6
workflow_dispatch:
7
8
jobs:
@@ -29,17 +29,13 @@ jobs:
29
- name: Hatch build
30
run: hatch build
31
32
- - name: Get hatch version
33
- id: hatch_version_step
34
- run: echo "VERSION=$(hatch version)" >> $GITHUB_OUTPUT
35
-
36
- name: Publish release distributions to PyPI
37
uses: pypa/gh-action-pypi-publish@release/v1
38
39
- name: Create GitHub Release
40
id: create_release
41
uses: softprops/action-gh-release@v2
42
with:
43
- tag_name: v${{ steps.hatch_version_step.outputs.VERSION }}
+ tag_name: ${{ github.ref_name }}
44
draft: false
45
prerelease: false
0 commit comments