File tree 1 file changed +29
-1
lines changed
1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 43
43
path : dist/*.whl
44
44
45
45
- name : Install built wheel
46
- run : pip install dist/*.whl
46
+ run : |
47
+ twine check dist/*
48
+ pip install dist/*.whl
49
+
50
+ upload_to_pypi :
51
+ name : Upload to PyPI
52
+ runs-on : ubuntu-latest
53
+ if : (github.event_name == 'release' && startsWith(github.ref, 'refs/tags')) || (github.event_name == 'workflow_dispatch')
54
+ needs : [build]
55
+ environment :
56
+ name : pypi
57
+ url : https://pypi.org/p/tensorflow-data-validation/
58
+ permissions :
59
+ id-token : write
60
+ steps :
61
+ - name : Retrieve wheels
62
+ uses : actions/download-artifact@v4.1.8
63
+ with :
64
+ merge-multiple : true
65
+ path : wheels
66
+
67
+ - name : List the build artifacts
68
+ run : |
69
+ ls -lAs wheels/
70
+
71
+ - name : Upload to PyPI
72
+ uses : pypa/gh-action-pypi-publish@release/v1.9
73
+ with :
74
+ packages_dir : wheels/
You can’t perform that action at this time.
0 commit comments