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

ci: add PyPI publish job to publish workflow #101

Merged

Conversation

moorec-aws
Copy link
Contributor

@moorec-aws moorec-aws commented Apr 24, 2024

What was the problem/requirement? (What/Why)

PyPI publishing does not support reusable workflows, there is an open issue to add support:

pypi/warehouse#11096

For now we need to keep publishing to pypi as a job in the publish workflow file of each repository so that it can authenticate to publish.

The Release job in the reusable publish workflow requires contents write permissons.

https://github.com/OpenJobDescription/.github/blob/mainline/.github/workflows/reusable_publish.yml#L35

What was the solution? (How)

  • Add a job to publish to PyPI in the release_publish.yml workflow
  • Add write permissions to the calling workflow.

What is the impact of this change?

Move PyPI publishing job back to each repository instead of using a reusable workflow

How was this change tested?

Tested in a developer github account

Was this change documented?

no

Is this a breaking change?

no


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@moorec-aws moorec-aws requested a review from a team as a code owner April 24, 2024 14:50
@moorec-aws moorec-aws changed the title ci: publish workfow needs content write permissions ci: add PyPI publish job to publish workflow Apr 24, 2024
Signed-off-by: Charles Moore <moorec@amazon.com>
@moorec-aws moorec-aws merged commit 6a3407b into aws-deadline:mainline Apr 25, 2024
12 checks passed
@moorec-aws moorec-aws deleted the moorec/add-contents-write branch April 25, 2024 14:56
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.

3 participants