Skip to content

Commit

Permalink
Don't upload to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 21, 2023
1 parent 5c5e94d commit 6d82be0
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Build & maybe upload PyPI package

on:
push:
branches: [main]
branches:
tags: ["*"]
pull_request:
branches: [main]
release:
types:
- published
Expand All @@ -25,28 +24,6 @@ jobs:

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

# Upload to Test PyPI on every commit on main.
release-test-pypi:
name: Publish in-dev package to test.pypi.org
if: github.repository_owner == 'python' && github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build-package

permissions:
id-token: write

steps:
- name: Download packages built by build-and-inspect-python-package
uses: actions/download-artifact@v3
with:
name: Packages
path: dist

- name: Upload package to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

# Upload to real PyPI on GitHub Releases.
release-pypi:
name: Publish to PyPI
Expand Down

0 comments on commit 6d82be0

Please sign in to comment.