-
Notifications
You must be signed in to change notification settings - Fork 1.7k
38 lines (34 loc) · 1.05 KB
/
nightly-release.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
name: nightly-release
on:
schedule:
# 11:00 UTC is 03:00 in Pacific standard time (UTC-8), which is well
# after nightly TensorFlow wheels are released (around 1--2 AM).
# (cron syntax: minute hour day-of-month month day-of-week)
- cron: '0 11 * * *'
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/ci.yml
nightly-release:
runs-on: ubuntu-22.04
needs: ci
if: github.repository == 'tensorflow/tensorboard'
steps:
- name: Download pip package
uses: actions/download-artifact@v4
with:
pattern: tb-nightly_py*
# Download all matching artifacts in the same directory (specified by path)
merge-multiple: true
path: wheels
- name: Install Twine
run: pip install twine
- name: Publish the package
run: |
twine check tb_nightly*.whl
twine upload tb_nightly*.whl
working-directory: wheels
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.NIGHTLY_PYPI_PASSWORD }}