Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d82be0

Browse files
committed
Don't upload to TestPyPI
1 parent 5c5e94d commit 6d82be0

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

.github/workflows/pypi-package.yml

+1-24
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ name: Build & maybe upload PyPI package
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
66
tags: ["*"]
77
pull_request:
8-
branches: [main]
98
release:
109
types:
1110
- published
@@ -25,28 +24,6 @@ jobs:
2524

2625
- uses: hynek/build-and-inspect-python-package@v1
2726

28-
# Upload to Test PyPI on every commit on main.
29-
release-test-pypi:
30-
name: Publish in-dev package to test.pypi.org
31-
if: github.repository_owner == 'python' && github.event_name == 'push' && github.ref == 'refs/heads/main'
32-
runs-on: ubuntu-latest
33-
needs: build-package
34-
35-
permissions:
36-
id-token: write
37-
38-
steps:
39-
- name: Download packages built by build-and-inspect-python-package
40-
uses: actions/download-artifact@v3
41-
with:
42-
name: Packages
43-
path: dist
44-
45-
- name: Upload package to Test PyPI
46-
uses: pypa/gh-action-pypi-publish@release/v1
47-
with:
48-
repository-url: https://test.pypi.org/legacy/
49-
5027
# Upload to real PyPI on GitHub Releases.
5128
release-pypi:
5229
name: Publish to PyPI

0 commit comments

Comments
 (0)