Skip to content

Commit 5f53205

Browse files
committed
chore: add correct publish action and build commands
1 parent f950fe1 commit 5f53205

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,17 @@ jobs:
4444
requirements-dev.txt
4545
setup.py
4646
deploy:
47-
name: Build deploy
47+
name: Build and publish to PyPI
4848
runs-on: ubuntu-latest
4949
permissions:
5050
contents: read
5151
id-token: write
5252
steps:
5353
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5454
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
55-
- uses: casperdcl/deploy-pypi@928e3123266d588b46c017228f9a9d4c13ad4c93 # v2.5.0
55+
- run: python -m pip install --upgrade build
56+
- run: python -m build
57+
- uses: pypa/gh-action-pypi-publish@release/v1
5658
with:
57-
build: true
58-
# only upload if a tag is pushed (otherwise just build & check)
59-
upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
59+
skip-existing: true
60+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}

0 commit comments

Comments
 (0)