-
Notifications
You must be signed in to change notification settings - Fork 27
44 lines (39 loc) · 1.12 KB
/
auto-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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