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

Update the GHA release workflow with trusted publisher enabled #614

Merged
merged 5 commits into from
Nov 23, 2023

Conversation

zelinh
Copy link
Member

@zelinh zelinh commented Nov 22, 2023

Description

Enable GHA release by adding trusted publisher.
This workflow will be triggered when a tag is pushed to this repository. The workflow will built the product and publish to Pypi.
The GitHub release will be created after publishing to Pypi with artifacts.tar.gz.

I will add this workflow as trusted publisher according to this. https://docs.pypi.org/trusted-publishers/adding-a-publisher/

Issues Resolved

Part of opensearch-project/opensearch-build-libraries#222

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0cb345d) 71.98% compared to head (c7cd359) 71.98%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #614   +/-   ##
=======================================
  Coverage   71.98%   71.98%           
=======================================
  Files          89       89           
  Lines        7935     7935           
=======================================
  Hits         5712     5712           
  Misses       2223     2223           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
CHANGELOG.md Outdated
@@ -6,6 +6,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added pylint `line-too-long` and `invalid-name` ([#590](https://github.com/opensearch-project/opensearch-py/pull/590))
- Added pylint `pointless-statement` ([#611](https://github.com/opensearch-project/opensearch-py/pull/611))
- Added a log collection guide ([#579](https://github.com/opensearch-project/opensearch-py/pull/579))
- - Update the GHA release workflow with trusted publisher enabled ([#614](https://github.com/opensearch-project/opensearch-py/pull/614))
Copy link
Member

Choose a reason for hiding this comment

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

Two - here.

CHANGELOG.md Outdated
@@ -6,6 +6,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added pylint `line-too-long` and `invalid-name` ([#590](https://github.com/opensearch-project/opensearch-py/pull/590))
- Added pylint `pointless-statement` ([#611](https://github.com/opensearch-project/opensearch-py/pull/611))
- Added a log collection guide ([#579](https://github.com/opensearch-project/opensearch-py/pull/579))
- - Update the GHA release workflow with trusted publisher enabled ([#614](https://github.com/opensearch-project/opensearch-py/pull/614))
Copy link
Member

Choose a reason for hiding this comment

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

I would say "Added GHA release"

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated here. Please help review it again. Thanks.

Signed-off-by: Zelin Hao <zelinhao@amazon.com>
@dblock dblock merged commit 5b28423 into opensearch-project:main Nov 23, 2023
56 checks passed
@dblock
Copy link
Member

dblock commented Nov 23, 2023

Btw, we noticed #609 related to publishing to pypi. Maybe you know how to fix it ...

@zelinh
Copy link
Member Author

zelinh commented Nov 24, 2023

OIDC on Pypi side for trusted publisher is added.

@zelinh zelinh deleted the add-gha-release branch November 24, 2023 18:36
roma2023 pushed a commit to roma2023/opensearch-py that referenced this pull request Dec 28, 2023
…earch-project#614)

* Add GitHub action for opensearch-py release

Signed-off-by: Zelin Hao <zelinhao@amazon.com>

* Generate GitHub release at the end

Signed-off-by: Zelin Hao <zelinhao@amazon.com>

* Update CHANGELOG

Signed-off-by: Zelin Hao <zelinhao@amazon.com>

* Update CHANGELOG

Signed-off-by: Zelin Hao <zelinhao@amazon.com>

---------

Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Signed-off-by: roma2023 <romasaparhan19@gmail.com>
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.

None yet

2 participants