|
35 | 35 | uses: actions/checkout@v5 |
36 | 36 | - name: Create release archive and notes |
37 | 37 | run: .github/workflows/create_archive_and_notes.sh |
38 | | - - name: Publish wheel dist |
39 | | - if: github.event_name == 'push' || github.event.inputs.publish_to_pypi |
40 | | - env: |
41 | | - # This special value tells pypi that the user identity is supplied within the token |
42 | | - TWINE_USERNAME: __token__ |
43 | | - # Note, the PYPI_API_TOKEN is for the rules-python pypi user, added by @rickylev on |
44 | | - # https://github.com/bazel-contrib/rules_python/settings/secrets/actions |
45 | | - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} |
46 | | - run: bazel run --stamp --embed_label=${{ github.ref_name }} //python/runfiles:wheel.publish |
| 38 | + release: |
47 | 39 | - name: Release |
48 | 40 | uses: softprops/action-gh-release@v2 |
49 | 41 | with: |
|
53 | 45 | prerelease: ${{ contains(github.ref, '-rc') }} |
54 | 46 | fail_on_unmatched_files: true |
55 | 47 | files: rules_python-*.tar.gz |
| 48 | + - name: Publish runfiles to PyPI |
| 49 | + if: github.event_name == 'push' || github.event.inputs.publish_to_pypi |
| 50 | + env: |
| 51 | + # This special value tells pypi that the user identity is supplied within the token |
| 52 | + TWINE_USERNAME: __token__ |
| 53 | + # Note, the PYPI_API_TOKEN is for the rules-python pypi user, added by @rickylev on |
| 54 | + # https://github.com/bazel-contrib/rules_python/settings/secrets/actions |
| 55 | + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} |
| 56 | + run: bazel run --stamp --embed_label=${{ github.ref_name }} //python/runfiles:wheel.publish |
| 57 | + publish_bcr: |
| 58 | + needs: build |
| 59 | + uses: .github/workflows/publish.yaml |
| 60 | + with: |
| 61 | + tag_name: ${{ github.ref_name }} |
| 62 | + secrets: |
| 63 | + BCR_PUBLISH_TOKEN: ${{ secrets.BCR_PUBLISH_TOKEN }} |
0 commit comments