-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 927 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish Crates
on:
push:
tags:
- "v*.*.*" # Matches tags like v0.6.10 but also v0.6.10-alpha.5
jobs:
publish:
# Don't publish alpha releases
# if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')
runs-on: ubuntu-latest
strategy:
matrix:
package:
[
xvc-logging,
xvc-test-helper,
xvc-walker,
xvc-ecs,
xvc-config,
xvc-core,
xvc-storage,
xvc-file,
xvc-pipelines,
xvc,
]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p ${{ matrix.package }}