Skip to content

Commit

Permalink
Update pypi-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Apr 25, 2023
1 parent 6d1c3d3 commit d8b1242
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build & maybe upload PyPI package

on:
push:
branches: [master, main]
branches: [master]
tags: ["*"]
pull_request:
branches: [master, main]
branches: [master]
release:
types:
- published
Expand All @@ -30,11 +30,11 @@ jobs:

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

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

Expand Down

0 comments on commit d8b1242

Please sign in to comment.