We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 248e33e commit dee64f4Copy full SHA for dee64f4
.github/workflows/ci.yml
@@ -3,7 +3,7 @@ name: Build and Release
3
on:
4
push:
5
branches:
6
- - master
+ - main
7
tags:
8
- "v*"
9
.github/workflows/publish.yml
@@ -0,0 +1,27 @@
1
+name: Publish to crates.io
2
+
+on:
+ push:
+ branches:
+ - 'main'
+jobs:
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v3
15
16
+ # Step 3: Install Rust
17
+ - name: Set up Rust
18
+ uses: actions-rs/toolchain@v1
19
+ with:
20
+ toolchain: stable
21
+ profile: minimal
22
23
+ - name: Deploy to crates.io
24
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
25
+ run: cargo publish
26
+ env:
27
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
0 commit comments