Skip to content

Commit

Permalink
Fix up our publishing process to publish keras-hub and keras-nlp
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdangerw committed Sep 20, 2024
1 parent 9074925 commit 75e732e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 47 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@ jobs:
- name: Build wheel file
run: |
python pip_build.py --nightly
- name: Publish to PyPI
- name: Publish KerasHub nightly to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_NIGHTLY_API_TOKEN_HUB }}
verbose: true
- name: Publish KerasHub nightly to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: keras-nlp/dist/
password: ${{ secrets.PYPI_NIGHTLY_API_TOKEN }}
packages-dir: dist/
verbose: true
43 changes: 0 additions & 43 deletions .github/workflows/publish-hub-to-pypi.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ jobs:
- name: Build a binary wheel and a source tarball
run: >-
python pip_build.py
- name: Publish distribution to PyPI
- name: Publish KerasHub to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_HUB }}
verbose: true
- name: Publish KerasNLP to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: keras-nlp/dist/
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true

0 comments on commit 75e732e

Please sign in to comment.