Skip to content

Commit e79fbf2

Browse files
authored
Merge pull request #223 from sanders41/publish
Add publish step
2 parents d40b0a3 + 998af66 commit e79fbf2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/publish_binaries.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,13 @@ jobs:
4141
file: target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
4242
asset_name: ${{ matrix.asset_name }}
4343
tag: ${{ github.ref }}
44+
cargo-publish:
45+
name: Publish to crates.io
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- name: Install Rust
50+
run: |
51+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
52+
- name: Publish
53+
run: cargo publish --token ${{ secrets.CARGO_API_TOKEN }}

0 commit comments

Comments
 (0)