-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.35 KB
/
crates.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
42
43
44
45
46
47
48
name: crates
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
BASENAME: ${{ github.event.repository.name }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_TERM_COLOR: always
on:
release:
types: [ published ]
repository_dispatch:
types: [ crates-io ]
workflow_dispatch:
jobs:
core:
name: Publish (${{ github.event.repository.name }})
runs-on: ubuntu-latest
strategy:
matrix:
features: [ core ]
steps:
- uses: actions/checkout@v4
- name: Publish (${{ matrix.features }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}-${{ matrix.features }}
features:
name: Publish (${{ github.event.repository.name }})
needs: [ core ]
runs-on: ubuntu-latest
strategy:
matrix:
features: [ neo ]
steps:
- uses: actions/checkout@v4
- name: Publish (${{ matrix.features }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}-${{ matrix.features }}
publish:
name: Publish (${{ github.event.repository.name }})
needs: [ features ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish (${{ github.event.repository.name }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}