Skip to content

Commit

Permalink
chore: auto compute prelease setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rickeylev committed Nov 27, 2024
1 parent 4e60d07 commit c93082b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@ jobs:
uses: actions/checkout@v4
- name: Create release archive and notes
run: .github/workflows/create_archive_and_notes.sh
- name: Publish wheel dist
env:
# This special value tells pypi that the user identity is supplied within the token
TWINE_USERNAME: __token__
# Note, the PYPI_API_TOKEN is for the rules-python pypi user, added by @rickylev on
# https://github.com/bazelbuild/rules_python/settings/secrets/actions
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: bazel run --stamp --embed_label=${{ github.ref_name }} //python/runfiles:wheel.publish
##- name: Publish wheel dist
## env:
## # This special value tells pypi that the user identity is supplied within the token
## TWINE_USERNAME: __token__
## # Note, the PYPI_API_TOKEN is for the rules-python pypi user, added by @rickylev on
## # https://github.com/bazelbuild/rules_python/settings/secrets/actions
## TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
## run: bazel run --stamp --embed_label=${{ github.ref_name }} //python/runfiles:wheel.publish
- name: Release
uses: softprops/action-gh-release@v2
with:
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
prerelease: contains(github.ref, "-rc")
fail_on_unmatched_files: true
files: rules_python-*.tar.gz

0 comments on commit c93082b

Please sign in to comment.