Skip to content

Commit 4c059ed

Browse files
authored
Only publish KerasNLP if we have a release tag (#1854)
We accidentally just published 0.16.0 😬 because we were missing this line (just yanked the release, so no one will get it now).
1 parent a932095 commit 4c059ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
password: ${{ secrets.PYPI_API_TOKEN_HUB }}
4141
verbose: true
4242
- name: Publish KerasNLP to PyPI
43+
if: startsWith(github.ref, 'refs/tags')
4344
uses: pypa/gh-action-pypi-publish@release/v1
4445
with:
4546
packages-dir: keras_nlp/dist/

0 commit comments

Comments
 (0)