Skip to content

Commit 3bc3440

Browse files
Update main.yml
1 parent 3a5fc21 commit 3bc3440

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,14 @@ jobs:
3434
needs: test
3535
runs-on: ubuntu-latest
3636
if: github.ref == 'refs/heads/master' # only on master
37+
environment:
38+
name: pypi-deployment
3739
steps:
3840
- uses: actions/checkout@v4
3941
- name: Set up Python
4042
uses: actions/setup-python@v5
4143
with:
4244
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.PYPI_USERNAME }}
46-
if: ${{ env.super_secret == '' }}
47-
run: echo "echo the secret \"PYPI_USERNAME\" has not been made; echo please go to \"settings \> secrets \> actions\" to create it"
4845
- name: Set Twine Environment Variables
4946
run: |
5047
echo "TWINE_USERNAME=${{ secrets.PYPI_USERNAME }}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)