Skip to content

Commit 5b1e81f

Browse files
committed
Consolidate PyPI upload to conda-build.yml and remove redundant workflows
1 parent a4d9a0b commit 5b1e81f

3 files changed

Lines changed: 26 additions & 94 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/conda-build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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/

.github/workflows/test.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)