-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.06 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
name: Crates
env:
CARGO_TERM_COLOR: always
on:
push:
tags: [ "nightly*", "v*.*.*" ]
release:
types: [ "published" ]
repository_dispatch:
types: [ "publish" ]
workflow_dispatch:
inputs:
publish:
default: true
description: 'Publish'
required: true
type: boolean
jobs:
features:
name: Publish (features)
runs-on: ubuntu-latest
strategy:
matrix:
features: [ core, music, turing ]
env:
PACKAGE_NAME: ${{ github.event.repository.name }}-${{ matrix.features }}
steps:
- uses: actions/checkout@v3
- name: Publish (${{env.PACKAGE_NAME}})
run: cargo publish --all-features -v -p ${{env.PACKAGE_NAME}} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish:
name: Publish (sdk)
needs: features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish (${{ github.event.repository.name }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}