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

gh-421: fix TestPyPI deployment #427

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

gh-421: fix TestPyPI deployment #427

wants to merge 7 commits into from

Conversation

paddyroddy
Copy link
Member

Closes #421. Allows one to use workflow_dispatch to deploy the current setup to TestPyPI, this should allow us to test things work as expected.

However, it still ensures that the publish workflow is still protected by the GitHub environment. This is achieved by changing the name of the job to test-publish when called with called by workflow_dispatch.

Closes #421. Allows one to use `workflow_dispatch` to deploy the current
setup to TestPyPI, this should allow us to test things work as
expected.

However, it still ensures that the `publish` workflow is still protected
by the GitHub environment. This is achieved by changing the name of the
job to `test-publish` when called with called by `workflow_dispatch`.
@paddyroddy paddyroddy added bug Something isn't working infrastructure Project infrastructure: dev tools, packaging, etc. labels Nov 15, 2024
@paddyroddy paddyroddy self-assigned this Nov 15, 2024
Copy link
Member

@Saransh-cpp Saransh-cpp left a comment

Choose a reason for hiding this comment

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

Thanks, @paddyroddy! Looks good!

Comment on lines +50 to +59
name: >-
${{ (github.event_name == 'release' &&
github.event.action == 'published') &&
'publish' ||
'test-publish' }}
url: >-
${{ (github.event_name == 'release' &&
github.event.action == 'published') &&
'https://pypi.org/project/glass' ||
'https://test.pypi.org/project/glass' }}
Copy link
Member

Choose a reason for hiding this comment

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

TIL: this works as inline if-else

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a weird syntax

@paddyroddy paddyroddy requested review from ntessore and removed request for ntessore November 21, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure Project infrastructure: dev tools, packaging, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't deploy to TestPyPI
3 participants