1 parent f5f8676 commit 99ee311Copy full SHA for 99ee311
2 files changed
.github/workflows/ci.yml
@@ -1,6 +1,11 @@
1
name: CI
2
3
-on: [push, pull_request]
+on:
4
+ push:
5
+ branches: [ main ]
6
+ tags: [ 'v*' ]
7
+ pull_request:
8
9
10
env:
11
CARGO_TERM_COLOR: never
@@ -22,3 +27,16 @@ jobs:
22
27
run: cargo clippy --workspace --all-targets -- -D warnings
23
28
- name: check
24
29
run: cargo check --workspace --all-targets
30
+
31
+ publish:
32
+ name: Publish to crates.io
33
+ needs: validate
34
+ if: startsWith(github.ref, 'refs/tags/v')
35
+ runs-on: ubuntu-latest
36
+ steps:
37
+ - uses: actions/checkout@v4
38
+ - uses: dtolnay/rust-toolchain@stable
39
+ - name: Publish teamtalk
40
+ run: |
41
+ cd crates/teamtalk
42
+ cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
.github/workflows/publish.yml
0 commit comments