Skip to content

Commit 5ebae6d

Browse files
committed
Simplify release workflow
1 parent c9bf4e1 commit 5ebae6d

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@ on:
44
workflow_dispatch:
55
push:
66
tags:
7-
- 'v*'
7+
- "v*"
88

99
jobs:
1010
publish:
1111
runs-on: ubuntu-latest
1212
# environment: release # Optional: for enhanced security
1313
permissions:
14-
id-token: write # Required for OIDC token exchange
14+
id-token: write # Required for OIDC token exchange
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: rust-lang/crates-io-auth-action@v1
18-
if: github.ref_type == 'tag'
19-
id: auth
20-
- uses: katyo/publish-crates@v2
21-
with:
22-
registry-token: ${{ steps.auth.outputs.token }}
23-
dry-run: ${{ github.ref_type != 'tag' }}
24-
ignore-unpublished-changes: true
16+
- uses: actions/checkout@v6
17+
- uses: rust-lang/crates-io-auth-action@v1
18+
id: auth
19+
- name: Publish Crates
20+
run: ./publish-all.sh
21+
env:
22+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)