Skip to content

Commit 5e3b36f

Browse files
committed
Add debug step
1 parent 619deed commit 5e3b36f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: ${{ matrix.python-version }}
28+
- name: Debug Event Info
29+
run: |
30+
echo "Event name: ${{ github.event_name }}"
31+
echo "Ref: ${{ github.ref }}"
32+
echo "Is tag? ${{ startsWith(github.ref, 'refs/tags/') }}"
2833
- name: Install dependencies
2934
run: |
3035
python -m pip install --upgrade pip
@@ -41,7 +46,7 @@ jobs:
4146
run: |
4247
pytest
4348
- name: Build and publish
44-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
49+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
4550
env:
4651
TWINE_USERNAME: __token__
4752
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)