Skip to content

Commit

Permalink
chore: still trying to fix release.yml
Browse files Browse the repository at this point in the history
updated if statements of uploading to testPyPI and PyPI
  • Loading branch information
mdtanker committed Nov 22, 2023
1 parent ff430a8 commit adbb8be
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ jobs:
# Upload to Test PyPI on every commit on main.
release-test-pypi:
name: Publish in-dev package to test.pypi.org
needs: build-package
environment: release-test-pypi
if:
github.repository_owner == 'python-attrs' && github.event_name == 'push'
&& github.ref == 'refs/heads/main'
github.ref == 'refs/heads/main' && needs.build-package.status == 'success'
runs-on: ubuntu-latest
needs: build-package

steps:
- name: Download packages built by build-and-inspect-python-package
Expand All @@ -70,12 +69,12 @@ jobs:
# Upload to real PyPI on GitHub Releases.
release-pypi:
name: Publish released package to pypi.org
needs: release-test-pypi
environment: release-pypi
if:
github.repository_owner == 'python-attrs' && github.event.action ==
'published'
github.ref == 'refs/heads/main' && needs.release-test-pypi.status ==
'success' && github.event.action == 'published'
runs-on: ubuntu-latest
needs: build-package

steps:
- name: Download packages built by build-and-inspect-python-package
Expand Down

0 comments on commit adbb8be

Please sign in to comment.