release: publish our runfiles wheel to pypi (#1048)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e89fa8..eb23bc8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml
@@ -28,6 +28,14 @@ uses: actions/checkout@v2 - 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: Release uses: softprops/action-gh-release@v1 with: