Skip to content

Commit c1643b0

Browse files
Fix release workflow
1 parent b168879 commit c1643b0

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ permissions:
55
pull-requests: write
66

77
on:
8+
workflow_dispatch:
89
push:
910
tags:
1011
- 'v[0-9]+.[0-9]+.[0-9]+'
@@ -20,20 +21,8 @@ jobs:
2021
steps:
2122
- uses: actions/checkout@v5
2223
- uses: dtolnay/rust-toolchain@stable
24+
- name: Log in to crate.io
25+
run: |-
26+
echo "${{ secrets.CARGO_TOKEN }}" | cargo login
2327
- name: Publish to crates.io
24-
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}
25-
26-
release-plz-pr:
27-
name: Release-plz PR
28-
runs-on: ubuntu-latest
29-
needs: publish-release
30-
steps:
31-
- uses: actions/checkout@v5
32-
- uses: dtolnay/rust-toolchain@stable
33-
- name: Run release-plz
34-
uses: release-plz/action@v0.5
35-
with:
36-
command: release-pr
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
28+
run: cargo publish --dry-run

0 commit comments

Comments
 (0)