Skip to content

Commit 9bc09f0

Browse files
committed
Add publish-crates job after successful cross-compile
1 parent 4fecabe commit 9bc09f0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,16 @@ jobs:
112112
gh release upload "$GITHUB_REF_NAME" \
113113
"${{ steps.package.outputs.archive }}" \
114114
"${{ steps.package.outputs.sha256 }}"
115+
116+
publish-crates:
117+
name: Publish to crates.io
118+
needs: build-release
119+
runs-on: ubuntu-latest
120+
steps:
121+
- uses: actions/checkout@v6
122+
- name: Install Rust toolchain
123+
run: rustup toolchain install stable --profile minimal
124+
- name: Publish
125+
run: cargo publish --locked
126+
env:
127+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)