You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The names of these two secrets are confusing. They are API tokens (generated by me, if I remember correctly), not someone's passwords. We should rename them to better names, TEST_PYPI_API_TOKEN and PYPI_API_TOKEN following the official guide.
The workflow always fails on forks, because forks don't have these secrets. We should skip the workflow for forks.
We should rename them to better names, TEST_PYPI_API_TOKEN and PYPI_API_TOKEN following the official guide.
Ok, renaming TEST_PYPI_PASSWORD -> TEST_PYPI_API_TOKEN and PYPI_PASSWORD -> PYPI_API_TOKEN sounds good, I can do it in PR #900.
The workflow always fails on forks, because forks don't have these secrets. We should skip the workflow for forks.
You sure we want to hardcode disabling Github Actions workflows for forks? I know we can add a if: github.repository == 'GenericMappingTools/pygmt' line to the workflow, but:
it will be hard for fork users to re-enable tests, unless they have good knowledge of Github Actions
You sure we want to hardcode disabling Github Actions workflows for forks? I know we can add a if: github.repository == 'GenericMappingTools/pygmt' line to the workflow, but:
I meant to add this line to the "Publish to PyPI" workflow, because forks can't do the uploads anyway (they don't have the tokens), and we also don't want to see projects like pygmt-01, pygmt-forks on PyPI.
For other workflows (e.g., Tests and GMT Dev Tests), I think they're disabled for forks by default but can be enabled following the documentation you just posted.
Activity
weiji14 commentedon Feb 16, 2021
Ok, renaming
TEST_PYPI_PASSWORD->TEST_PYPI_API_TOKENandPYPI_PASSWORD->PYPI_API_TOKENsounds good, I can do it in PR #900.You sure we want to hardcode disabling Github Actions workflows for forks? I know we can add a
if: github.repository == 'GenericMappingTools/pygmt'line to the workflow, but:seisman commentedon Feb 16, 2021
I meant to add this line to the "Publish to PyPI" workflow, because forks can't do the uploads anyway (they don't have the tokens), and we also don't want to see projects like pygmt-01, pygmt-forks on PyPI.
seisman commentedon Feb 16, 2021
For other workflows (e.g., Tests and GMT Dev Tests), I think they're disabled for forks by default but can be enabled following the documentation you just posted.