Add warning when GCS checkpoint is missing commit_success.txt (in cas… #4931
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto-publish | |
on: [push, workflow_dispatch] | |
jobs: | |
publish-checkpoint-job: | |
# Only try to publish if: | |
# * Repo is self (prevents running from forks) | |
# * Branch is `main` | |
if: | | |
github.repository == 'google/orbax' | |
&& github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
timeout-minutes: 30 | |
steps: | |
# 1. Publish the sub-packages first | |
- uses: etils-actions/pypi-auto-publish@v1 | |
with: | |
pypi-token: ${{ secrets.PYPI_API_TOKEN_OBX_CKPT }} | |
path: "./checkpoint/" | |
pkg-name: orbax-checkpoint | |
publish-export-job: | |
# Only try to publish if: | |
# * Repo is self (prevents running from forks) | |
# * Branch is `main` | |
if: | | |
github.repository == 'google/orbax' | |
&& github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
timeout-minutes: 30 | |
steps: | |
# 1. Publish the sub-packages first | |
- uses: etils-actions/pypi-auto-publish@v1 | |
with: | |
pypi-token: ${{ secrets.PYPI_API_TOKEN_OBX_EXPT }} | |
path: "./export/" | |
pkg-name: orbax-export |