From fbee839b3a32cfc20c1949dbdb0249193c37d6ec Mon Sep 17 00:00:00 2001 From: erikayasuda Date: Fri, 18 Oct 2024 15:48:34 -0400 Subject: [PATCH] check if token exists --- .github/workflows/build_deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index 33081dd..fcaeb67 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -72,6 +72,13 @@ jobs: with: name: artifact-wheel path: dist + - name: Check for Secret + run: | + if [ -z "${{ secrets.PYPI_TOKEN }}" ]; then + echo "PYPI_TOKEN is not set" + else + echo "PYPI_TOKEN exists" + fi - uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__