Skip to content

Commit 602b57d

Browse files
Update main.yml
1 parent 4ccb22b commit 602b57d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,15 @@ jobs:
4040
uses: actions/setup-python@v5
4141
with:
4242
python-version: 3.12 # Specify the Python version you want to use for deployment
43+
- name: "check PYPI USERNAME exists"
44+
env:
45+
super_secret: ${{ secrets.MY_SECRET }}
46+
if: ${{ secrets.PYPI_USERNAME == '' }}
47+
run: 'echo "echo the secret \"PYPI_USERNAME\" has not been made; echo please go to \"settings \> secrets \> actions\" to create it"
4348
- name: Set Twine Environment Variables
4449
run: |
4550
echo "TWINE_USERNAME=${{ secrets.PYPI_USERNAME }}" >> $GITHUB_ENV
4651
echo "TWINE_PASSWORD=${{ secrets.PYPI_PASSWORD }}" >> $GITHUB_ENV
47-
echo "TWINE_PASSWORD=${{ secrets.PYPI_USERNAME }}"
4852
- name: Build and Upload to PyPI
4953
run: |
5054
pip install -U setuptools twine wheel

0 commit comments

Comments
 (0)