Skip to content

Commit cb5548c

Browse files
committed
fix workflow
1 parent b9ec06f commit cb5548c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838

3939
release:
4040
name: Release
41+
needs: build
4142
uses: softprops/action-gh-release@v2
4243
with:
4344
# Use GH feature to populate the changelog automatically
@@ -61,11 +62,12 @@ jobs:
6162
name: Publish runfiles to PyPI
6263
needs: publish_bcr
6364
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
65+
steps:
66+
- if: github.event_name == 'push' || github.event.inputs.publish_to_pypi
67+
env:
68+
# This special value tells pypi that the user identity is supplied within the token
69+
TWINE_USERNAME: __token__
70+
# Note, the PYPI_API_TOKEN is for the rules-python pypi user, added by @rickylev on
71+
# https://github.com/bazel-contrib/rules_python/settings/secrets/actions
72+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
73+
run: bazel run --stamp --embed_label=${{ github.ref_name }} //python/runfiles:wheel.publish

0 commit comments

Comments
 (0)