From 7e31148742feb5becd1669d3346415f7dae2dc3e Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Tue, 21 Apr 2026 14:47:37 +0200 Subject: [PATCH 1/5] ci: Fix working-directory paths in publish.yml --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 59c81e6459..d18dc5343b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: defaults: run: - working-directory: api-client/python + working-directory: api-clients/python environment: name: pypi @@ -65,7 +65,7 @@ jobs: defaults: run: - working-directory: api-client/typescript + working-directory: api-clients/typescript steps: - uses: actions/checkout@v6 @@ -97,7 +97,7 @@ jobs: defaults: run: - working-directory: api-client/rust + working-directory: api-clients/rust steps: - uses: actions/checkout@v6 From dacb853662085acdde0298a6b9e4a3026a027931 Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Tue, 21 Apr 2026 15:21:31 +0200 Subject: [PATCH 2/5] Update publish command in workflow Removed token usage from cargo publish command. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d18dc5343b..60fc7edd85 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -108,4 +108,4 @@ jobs: - name: Install dependencies run: cargo fetch - name: Publish - run: cargo publish --token ${{ secrets.CARGO_TOKEN }} + run: cargo publish From 95d4ef4da1ff4c8b28c8f5a85ce439c4739b67e7 Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Tue, 21 Apr 2026 15:29:05 +0200 Subject: [PATCH 3/5] Update package directory for PyPI publishing --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 60fc7edd85..6b10b39b93 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,7 +49,7 @@ jobs: - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - packages-dir: python/dist/ # does not use `run.working-directory` + packages-dir: api-clients/python/dist/ # does not use `run.working-directory` typescript: name: Publish TypeScript Package From 15126fe62e9f9793d7d0bd271da930e626739515 Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Tue, 21 Apr 2026 15:32:13 +0200 Subject: [PATCH 4/5] Add crates-io-auth-action for publishing --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6b10b39b93..6987cd43c4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -107,5 +107,9 @@ jobs: toolchain: ${{ matrix.rust-version }} - name: Install dependencies run: cargo fetch + - uses: rust-lang/crates-io-auth-action@v1 + id: auth - name: Publish run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} From 25530d9f135ea2c1d0be59083da9d17a667c3518 Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Tue, 21 Apr 2026 15:43:15 +0200 Subject: [PATCH 5/5] Add write permission for id-token in publish.yml --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6987cd43c4..11d0dfe0b4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -90,7 +90,8 @@ jobs: permissions: contents: read - + id-token: write + strategy: matrix: rust-version: ["1.80.0"] # use lowest supported Rust version