opensearch-project / opensearch-php

Official PHP Client for OpenSearch
Other
91 stars 54 forks source link

Add release automation #183

Closed gaiksaya closed 2 months ago

gaiksaya commented 2 months ago

Description

Adds workflow that publishes the package to packagist using manual webook. Since we only want to publish when a tag is pushed and GitHub webhooks does not allow to specify what exact trigger we want, a manual webhook is used here. See https://packagist.org/about#how-to-update-packages The flow would be: push a tag -> runs the workflow -> creates issue asking for approval from codeowners -> once approved publish to packagist using manual webhook -> Publish a release on GH

Issues Resolved

https://github.com/opensearch-project/opensearch-build/issues/3146

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.

gaiksaya commented 2 months ago

@gaiksaya Care to add a paragraph on how to do a release to RELEASING as part of this PR?

Done. Please review. Once merge I'll add the API token in the secrets. Yet to do that.

dblock commented 2 months ago

@shyim we love it when you approve and hit merge, don't hold back!

gaiksaya commented 2 months ago

The secret has been added now.

dblock commented 2 months ago

@gaiksaya So if I create a tag it should just do the release for me? I'm going to give it a try.

gaiksaya commented 2 months ago

@gaiksaya So if I create a tag it should just do the release for me? I'm going to give it a try.

Yes

saimedhi commented 2 months ago

@dblock, I can handle the opensearch-php release. I'm not a maintainer, but I can create the bump version PR and cut the tag, right?

dblock commented 2 months ago

You can't tag without maintainer permissions. I PRed #184 to start.