-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.58 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
49
50
51
52
53
54
55
56
57
58
59
60
name: crates.io
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
CARGO_TERM_COLOR: always
on:
push:
tags: [nightly*, v*.*.*]
release:
types: [created]
repository_dispatch:
types: [publish]
workflow_dispatch:
inputs:
publish:
default: true
description: "Publish"
required: true
type: boolean
jobs:
core:
name: Publish (core)
runs-on: ubuntu-latest
strategy:
matrix:
package: [core]
env:
PACKAGE_NAME: ${{ github.event.repository.name }}-${{ matrix.package }}
steps:
- uses: actions/checkout@v4
- name: Publish (${{ env.PACKAGE_NAME }})
run: cargo publish --all-features -v -p ${{ env.PACKAGE_NAME }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
features:
name: Publish (features)
needs: core
runs-on: ubuntu-latest
strategy:
matrix:
package: [actors, derive, macros]
env:
PACKAGE_NAME: ${{ github.event.repository.name }}-${{ matrix.package }}
steps:
- uses: actions/checkout@v4
- name: Publish (${{ env.PACKAGE_NAME }})
run: cargo publish --all-features -v -p ${{ env.PACKAGE_NAME }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
sdk:
env:
PACKAGE_NAME: ${{ github.event.repository.name }}
name: Publish (sdk)
needs: features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish (${{ env.PACKAGE_NAME }})
run: cargo publish --all-features -v -p ${{ env.PACKAGE_NAME }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}