You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fluss.apache.org by yu...@apache.org on 2026/04/03 03:15:44 UTC

(fluss-rust) branch release-v0.1.0 created (now dac48fd)

This is an automated email from the ASF dual-hosted git repository.

yuxia pushed a change to branch release-v0.1.0
in repository https://gitbox.apache.org/repos/asf/fluss-rust.git


      at dac48fd  ci: pin pypi publish action to ASF-approved SHA

This branch includes the following new commits:

     new b080f6d  ci: fix release rust issue
     new dac48fd  ci: pin pypi publish action to ASF-approved SHA

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(fluss-rust) 02/02: ci: pin pypi publish action to ASF-approved SHA

Posted by yu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

yuxia pushed a commit to branch release-v0.1.0
in repository https://gitbox.apache.org/repos/asf/fluss-rust.git

commit dac48fd840fa63a86ff28abf0649b2d4dd6088b4
Author: luoyuxia <lu...@alumni.sjtu.edu.cn>
AuthorDate: Fri Apr 3 11:02:42 2026 +0800

    ci: pin pypi publish action to ASF-approved SHA
---
 .github/workflows/release_python.yml | 31 +++++++------------------------
 1 file changed, 7 insertions(+), 24 deletions(-)

diff --git a/.github/workflows/release_python.yml b/.github/workflows/release_python.yml
index 7e57946..d61213e 100644
--- a/.github/workflows/release_python.yml
+++ b/.github/workflows/release_python.yml
@@ -19,8 +19,7 @@
 # Trigger: push tag only (e.g. v0.1.0).
 # Pre-release tags (containing '-') publish to TestPyPI; release tags publish to PyPI.
 #
-# Token auth: set repo variable PYPI_USE_TOKEN_AUTH = 'true' and add secrets PYPI_API_TOKEN / TEST_PYPI_API_TOKEN.
-# Trusted Publishing (OIDC): leave PYPI_USE_TOKEN_AUTH unset; do not pass password so the action uses OIDC.
+# Token auth: add secrets PYPI_API_TOKEN / TEST_PYPI_API_TOKEN for publishing.
 
 name: Release Python
 
@@ -149,7 +148,6 @@ jobs:
     runs-on: ubuntu-latest
     permissions:
       contents: read
-      id-token: write
     needs: [version-check, sdist, wheels]
     if: startsWith(github.ref, 'refs/tags/')
     steps:
@@ -159,34 +157,19 @@ jobs:
           merge-multiple: true
           path: bindings/python/dist
 
-      - name: Publish to TestPyPI (token)
-        if: contains(github.ref, '-') && vars.PYPI_USE_TOKEN_AUTH == 'true'
-        uses: pypa/gh-action-pypi-publish@release/v1
+      - name: Publish to TestPyPI
+        if: contains(github.ref, '-')
+        uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
         with:
           repository-url: https://test.pypi.org/legacy/
           skip-existing: true
           packages-dir: bindings/python/dist
           password: ${{ secrets.TEST_PYPI_API_TOKEN }}
 
-      - name: Publish to TestPyPI (Trusted Publishing)
-        if: contains(github.ref, '-') && vars.PYPI_USE_TOKEN_AUTH != 'true'
-        uses: pypa/gh-action-pypi-publish@release/v1
-        with:
-          repository-url: https://test.pypi.org/legacy/
-          skip-existing: true
-          packages-dir: bindings/python/dist
-
-      - name: Publish to PyPI (token)
-        if: ${{ !contains(github.ref, '-') && vars.PYPI_USE_TOKEN_AUTH == 'true' }}
-        uses: pypa/gh-action-pypi-publish@release/v1
+      - name: Publish to PyPI
+        if: ${{ !contains(github.ref, '-') }}
+        uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
         with:
           skip-existing: true
           packages-dir: bindings/python/dist
           password: ${{ secrets.PYPI_API_TOKEN }}
-
-      - name: Publish to PyPI (Trusted Publishing)
-        if: ${{ !contains(github.ref, '-') && vars.PYPI_USE_TOKEN_AUTH != 'true' }}
-        uses: pypa/gh-action-pypi-publish@release/v1
-        with:
-          skip-existing: true
-          packages-dir: bindings/python/dist


(fluss-rust) 01/02: ci: fix release rust issue

Posted by yu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

yuxia pushed a commit to branch release-v0.1.0
in repository https://gitbox.apache.org/repos/asf/fluss-rust.git

commit b080f6d4514547abd2917bcd14b857d4617b8a37
Author: luoyuxia <lu...@alumni.sjtu.edu.cn>
AuthorDate: Fri Apr 3 10:17:17 2026 +0800

    ci: fix release rust issue
---
 .github/workflows/release_rust.yml     | 13 ++-----------
 website/docs/release/create-release.md |  3 +++
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/release_rust.yml b/.github/workflows/release_rust.yml
index 0a567a6..7ff7c0b 100644
--- a/.github/workflows/release_rust.yml
+++ b/.github/workflows/release_rust.yml
@@ -19,8 +19,7 @@
 # Trigger: push tag only (e.g. v0.1.0).
 # Pre-release tags (containing '-') do not publish; release tags publish to crates.io.
 #
-# Token auth: set repo variable CARGO_USE_TOKEN_AUTH = 'true' and add secret CARGO_REGISTRY_TOKEN.
-# Trusted Publishing (OIDC): leave CARGO_USE_TOKEN_AUTH unset; token is obtained via OIDC (no secret).
+# Token auth: add secret CARGO_REGISTRY_TOKEN for crates.io publishing.
 
 name: Release Rust
 
@@ -34,7 +33,6 @@ jobs:
     runs-on: ubuntu-latest
     permissions:
       contents: read
-      id-token: write
     steps:
       - uses: actions/checkout@v4
 
@@ -46,15 +44,8 @@ jobs:
       - name: Dry run (crates/fluss)
         run: cargo publish -p fluss-rs --dry-run
 
-      - name: Get crates.io token (OIDC)
-        if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') && vars.CARGO_USE_TOKEN_AUTH != 'true'
-        uses: rust-lang/crates-io-auth-action@v1
-        id: auth
-        with:
-          token-type: publish
-
       - name: Publish fluss-rs to crates.io
         if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')
         run: cargo publish -p fluss-rs
         env:
-          CARGO_REGISTRY_TOKEN: "${{ vars.CARGO_USE_TOKEN_AUTH == 'true' && secrets.CARGO_REGISTRY_TOKEN || steps.auth.outputs.token }}"
+          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
diff --git a/website/docs/release/create-release.md b/website/docs/release/create-release.md
index ba9c875..5df8443 100644
--- a/website/docs/release/create-release.md
+++ b/website/docs/release/create-release.md
@@ -39,10 +39,13 @@ Anybody can propose a release (e.g. on the dev [mailing list](https://fluss.apac
 
 Before your first release, perform one-time configuration. See **[Release Manager Preparation](https://fluss.apache.org/community/how-to-release/release-manager-preparation/)** (GPG key, etc.). For fluss-rust you do **not** need Nexus/Maven; you only need GPG for signing the source archive and (optionally) git signing.
 
+For GitHub Actions publishing, configure the repository secret `CARGO_REGISTRY_TOKEN` with a crates.io API token from an account allowed to publish `fluss-rs`. The `Release Rust` workflow uses this secret directly when a release tag is pushed.
+
 **Checklist (one-time)**
 
 - [ ] GPG key set up and published to [KEYS](https://downloads.apache.org/incubator/fluss/KEYS) or Apache account
 - [ ] Git configured to use your GPG key for signing tags
+- [ ] GitHub Actions secret `CARGO_REGISTRY_TOKEN` configured for crates.io publishing
 
 ### 1. Install Rust (and optional: just)