Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Commit 32e6a92

Browse files
committed
Merge branch 'main' of https://github.com/knitli/recoco
2 parents dc00e2f + 61e6826 commit 32e6a92

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ on:
1111
- "v*"
1212
workflow_dispatch:
1313

14-
permissions:
15-
contents: write
16-
id-token: write
17-
packages: read
18-
1914
jobs:
2015
release:
2116
name: Release
2217
runs-on: ubuntu-latest
2318
environment: cratesio
19+
permissions:
20+
contents: write
21+
id-token: write
22+
packages: read
2423
steps:
2524
- name: Checkout
2625
uses: actions/checkout@v6
@@ -56,18 +55,23 @@ jobs:
5655
- name: Publish recoco-utils
5756
run: cargo publish -p recoco-utils
5857
env:
59-
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.CARGO_REGISTRY_TOKEN }}
58+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
6059

6160
- name: Publish recoco-splitters
6261
run: cargo publish -p recoco-splitters
6362
env:
64-
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.CARGO_REGISTRY_TOKEN }}
63+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
6564

6665
# Wait a bit for dependencies to propagate in the registry
6766
- name: Wait for propagation
6867
run: sleep 30
6968

69+
# get a new token to be safe
70+
- name: Get auth token
71+
id: auth2
72+
uses: rust-lang/crates-io-auth-action@v1
73+
7074
- name: Publish recoco
7175
run: cargo publish -p recoco
7276
env:
73-
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.CARGO_REGISTRY_TOKEN }}
77+
CARGO_REGISTRY_TOKEN: ${{ steps.auth2.outputs.token }}

0 commit comments

Comments
 (0)