File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -100,3 +100,29 @@ jobs:
100100 with :
101101 name : data-validation-wheel-${{ matrix.os }}-py${{ matrix.python-version }}
102102 path : dist/*.whl
103+
104+ upload_to_pypi :
105+ name : Upload to PyPI
106+ runs-on : ubuntu-latest
107+ if : (github.event_name == 'release' && startsWith(github.ref, 'refs/tags')) || (github.event_name == 'workflow_dispatch')
108+ needs : [build]
109+ environment :
110+ name : pypi
111+ url : https://pypi.org/p/tensorflow-data-validation/
112+ permissions :
113+ id-token : write
114+ steps :
115+ - name : Retrieve wheels
116+ uses : actions/download-artifact@v4.1.8
117+ with :
118+ merge-multiple : true
119+ path : wheels
120+
121+ - name : List the build artifacts
122+ run : |
123+ ls -lAs wheels/
124+
125+ - name : Upload to PyPI
126+ uses : pypa/gh-action-pypi-publish@release/v1.9
127+ with :
128+ packages_dir : wheels/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments