Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub action issues cont #10

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
push:
branches:
- main
release:
types:
- published
# release:
# types:
# - published

permissions:
contents: read
Expand Down 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
Loading