@@ -38,14 +38,17 @@ jobs:
3838
3939 release :
4040 name : Release
41- uses : softprops/action-gh-release@v2
42- with :
43- # Use GH feature to populate the changelog automatically
44- generate_release_notes : true
45- body_path : release_notes.txt
46- prerelease : ${{ contains(github.ref, '-rc') }}
47- fail_on_unmatched_files : true
48- files : rules_python-*.tar.gz
41+ needs : build
42+ steps :
43+ - name : Release
44+ uses : softprops/action-gh-release@v2
45+ with :
46+ # Use GH feature to populate the changelog automatically
47+ generate_release_notes : true
48+ body_path : release_notes.txt
49+ prerelease : ${{ contains(github.ref, '-rc') }}
50+ fail_on_unmatched_files : true
51+ files : rules_python-*.tar.gz
4952
5053 publish_bcr :
5154 name : Publish to BCR
@@ -61,11 +64,12 @@ jobs:
6164 name : Publish runfiles to PyPI
6265 needs : publish_bcr
6366 runs-on : ubuntu-latest
64- if : github.event_name == 'push' || github.event.inputs.publish_to_pypi
65- env :
66- # This special value tells pypi that the user identity is supplied within the token
67- TWINE_USERNAME : __token__
68- # Note, the PYPI_API_TOKEN is for the rules-python pypi user, added by @rickylev on
69- # https://github.com/bazel-contrib/rules_python/settings/secrets/actions
70- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
71- run : bazel run --stamp --embed_label=${{ github.ref_name }} //python/runfiles:wheel.publish
67+ steps :
68+ - if : github.event_name == 'push' || github.event.inputs.publish_to_pypi
69+ env :
70+ # This special value tells pypi that the user identity is supplied within the token
71+ TWINE_USERNAME : __token__
72+ # Note, the PYPI_API_TOKEN is for the rules-python pypi user, added by @rickylev on
73+ # https://github.com/bazel-contrib/rules_python/settings/secrets/actions
74+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
75+ run : bazel run --stamp --embed_label=${{ github.ref_name }} //python/runfiles:wheel.publish
0 commit comments