Skip to content

Commit

Permalink
CICD debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-adams-planet committed Dec 11, 2024
1 parent 51fdc71 commit 683610c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
path: dist
- name: 'Nox: Publish to PyPi'
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN_TEST }}
NOX_PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN_TEST }}
run: |
printenv
nox -s pkg_publish_pypi_test
Expand Down
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,17 @@ def _publish_pypi(session, repo_url, token):

@nox.session(python=_DEFAULT_PYTHON)
def pkg_publish_pypi_prod(session):
token = os.getenv("PYPI_API_TOKEN")
token = os.getenv("NOX_PYPI_API_TOKEN")
if not token:
sys.exit("PYPI_API_TOKEN must be set in the environment with the PyPi access token")
sys.exit("NOX_PYPI_API_TOKEN must be set in the environment with the PyPi access token")
_publish_pypi(session, "https://upload.pypi.org/legacy", token)


@nox.session(python=_DEFAULT_PYTHON)
def pkg_publish_pypi_test(session):
token = os.getenv("PYPI_API_TOKEN")
token = os.getenv("NOX_PYPI_API_TOKEN")
if not token:
sys.exit("PYPI_API_TOKEN must be set in the environment with the PyPi access token")
sys.exit("NOX_PYPI_API_TOKEN must be set in the environment with the PyPi access token")
_publish_pypi(session, "https://test.pypi.org/legacy/", token)


Expand Down

0 comments on commit 683610c

Please sign in to comment.