File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,25 @@ jobs:
103103 bazel test //tensorboard/summary/writer:event_file_writer_s3_test &&
104104 bazel test //tensorboard/compat/tensorflow_stub:gfile_fsspec_test &&
105105 bazel test //tensorboard/summary/writer:event_file_writer_fsspec_test
106+ - name : ' Bazel: build Pip package (master branch TF build only)'
107+ # This pip package is only needed if we will upload it, so run this step
108+ # only under the same conditions as the next step (see comment below).
109+ if : matrix.tf_version_id == 'tf' && github.repository == 'tensorflow/tensorboard' && github.ref == 'refs/heads/master'
110+ run : |
111+ ./tensorboard/tools/set_nightly_version.sh
112+ rm -rf /tmp/tb_nightly_pip_package && mkdir /tmp/tb_nightly_pip_package
113+ bazel run //tensorboard/pip_package:build_pip_package -- /tmp/tb_nightly_pip_package
114+ - name : ' Upload Pip package as an artifact (master branch TF build only)'
115+ # Prevent uploads when running on forks or non-master branch.
116+ #
117+ # Note that upload-artifact GH action, starting in v4, requires the name of the uploaded
118+ # file(s) to be unique per workflow run, so make sure that the name is unique for each
119+ # "matrix" combination for which this is executed.
120+ if : matrix.tf_version_id == 'tf' && github.repository == 'tensorflow/tensorboard' && github.ref == 'refs/heads/master'
121+ uses : actions/upload-artifact@v4
122+ with :
123+ name : tb-nightly_py${{ matrix.python_version }}
124+ path : /tmp/tb_nightly_pip_package/*
106125
107126 build-data-server-pip :
108127 runs-on : ${{ matrix.platform }}
You can’t perform that action at this time.
0 commit comments