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

[infra] Prevent running python-release action without a specified rc version #1386

Closed

Conversation

kevinjqliu
Copy link
Contributor

@kevinjqliu kevinjqliu commented Nov 27, 2024

When running without RC version, artifacts will be published to PyPi as the "official version", which is not what we want.

Let's always run with RC version (or as main) to prevent accidentally pushing new official versions to PyPi.

When the RC passes, releasing as the official version downloads artifacts from SVN
https://github.com/apache/iceberg-python/blob/main/mkdocs/docs/how-to-release.md#upload-the-accepted-release-to-pypi

Testing

@kevinjqliu kevinjqliu changed the title [infra] Prevent running python-release action without specifying rc version [infra] Prevent running python-release action without a specified rc version Nov 28, 2024
@kevinjqliu kevinjqliu requested a review from Fokko November 28, 2024 00:36
echo "Version input is: ${{ github.event.inputs.version }}"

- name: Validate version input
if: ${{ github.event.inputs.version != 'main' && !contains(github.event.inputs.version, 'rc') }}
Copy link
Contributor Author

@kevinjqliu kevinjqliu Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to do this since we run on different os environments with different default shells

@kevinjqliu
Copy link
Contributor Author

closing in favor of #1391

@kevinjqliu kevinjqliu closed this Dec 4, 2024
@kevinjqliu kevinjqliu deleted the kevinjqliu/prevent-release-without-rc branch December 4, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant