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

build: Update deployment action with trusted publisher #1423

Merged
merged 4 commits into from
Feb 7, 2024

Conversation

havogt
Copy link
Contributor

@havogt havogt commented Jan 24, 2024

This can only be tested once merged and a new release is created.

@havogt havogt requested a review from egparedes January 24, 2024 14:55
Copy link
Contributor

@DropD DropD left a comment

Choose a reason for hiding this comment

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

The only mandatory change is the name of the full PyPI release step, the other ones will help whoever needs to edit this in the future though.

.github/workflows/deploy-release.yml Outdated Show resolved Hide resolved
.github/workflows/deploy-release.yml Show resolved Hide resolved
.github/workflows/deploy-release.yml Outdated Show resolved Hide resolved
.github/workflows/deploy-release.yml Outdated Show resolved Hide resolved
.github/workflows/deploy-release.yml Outdated Show resolved Hide resolved
Co-authored-by: Rico Haeuselmann <[email protected]>
Copy link
Contributor

@egparedes egparedes left a comment

Choose a reason for hiding this comment

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

ILGTM

id-token: write
steps:
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

missing url?

Copy link
Contributor

Choose a reason for hiding this comment

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

Based on the documentation here (https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#separate-workflow-for-publishing-to-testpypi), it looks like the repository-url key might be missing:

      with:
        repository-url: https://test.pypi.org/legacy/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, sorry, that comment was for me to add exactly that

@havogt havogt merged commit b7d34b6 into GridTools:main Feb 7, 2024
31 checks passed
@havogt havogt deleted the update_deployment_action branch February 7, 2024 14:16
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