Skip to content

Commit d54a433

Browse files
committed
update tag_and_publish.yml
1 parent 75ee395 commit d54a433

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/tag_and_publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Auto Tag and Upload Python Package
33
on:
44
push:
55
branches:
6-
- dev
6+
- test
77

88
jobs:
99
tag_and_publish:
@@ -52,13 +52,13 @@ jobs:
5252
release_name: Release ${{ env.VERSION }}
5353
body_path: ./release_notes.txt
5454

55-
- name: Build
55+
- name: Build and publish
5656
if: env.RELEASE_EXISTS == 'false'
5757
run: |
5858
python -m pip install --upgrade pip
5959
pip install -e '.[dev]'
6060
hatch build
61-
62-
- name: Publish
63-
if: env.RELEASE_EXISTS == 'false'
64-
uses: pypa/gh-action-pypi-publish@release/v1
61+
hatch publish
62+
env:
63+
HATCH_INDEX_USER: __token__
64+
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)