Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LostInDarkMath committed May 3, 2024
1 parent 4ccb22b commit 602b57d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.12 # Specify the Python version you want to use for deployment
- name: "check PYPI USERNAME exists"
env:
super_secret: ${{ secrets.MY_SECRET }}
if: ${{ secrets.PYPI_USERNAME == '' }}
run: 'echo "echo the secret \"PYPI_USERNAME\" has not been made; echo please go to \"settings \> secrets \> actions\" to create it"
- name: Set Twine Environment Variables
run: |
echo "TWINE_USERNAME=${{ secrets.PYPI_USERNAME }}" >> $GITHUB_ENV
echo "TWINE_PASSWORD=${{ secrets.PYPI_PASSWORD }}" >> $GITHUB_ENV
echo "TWINE_PASSWORD=${{ secrets.PYPI_USERNAME }}"
- name: Build and Upload to PyPI
run: |
pip install -U setuptools twine wheel
Expand Down

0 comments on commit 602b57d

Please sign in to comment.