Skip to content

Commit ef0b5fa

Browse files
committed
python ci prerelease
1 parent b9a0f01 commit ef0b5fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/c.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,6 @@ jobs:
162162
env:
163163
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164164
with:
165-
prerelease: ${{ contains(github.event.ref, '-pre') || contains(github.event.ref, '-alpha') || contains(github.event.ref, '-beta') || contains(github.event.ref, '-rc') }}
165+
prerelease: ${{ contains(github.event.ref, '-pre') || contains(github.event.ref, '-alpha') || contains(github.event.ref, '-beta') || contains(github.event.ref, '-rc') || contains(github.event.ref, '-dev') }}
166166
files: |
167167
*.tar.gz

.github/workflows/python.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ jobs:
185185
- name: Publish distribution to PyPI
186186
env:
187187
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
188+
if: env.PYPI_API_TOKEN != null
188189
uses: pypa/gh-action-pypi-publish@release/v1
189190
with:
190191
user: __token__
@@ -215,7 +216,7 @@ jobs:
215216
env:
216217
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
217218
with:
218-
prerelease: ${{ contains(github.event.ref, '-pre') || contains(github.event.ref, '-alpha') || contains(github.event.ref, '-beta') || contains(github.event.ref, '-rc') }}
219+
prerelease: ${{ contains(github.event.ref, '-pre') || contains(github.event.ref, '-alpha') || contains(github.event.ref, '-beta') || contains(github.event.ref, '-rc') || contains(github.event.ref, '-dev') }}
219220
files: |
220221
*.tar.gz
221222

0 commit comments

Comments
 (0)