-
Notifications
You must be signed in to change notification settings - Fork 130
55 lines (47 loc) · 1.24 KB
/
cargo-publish.yaml
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
name: Publish a release to crates.io
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
upload-crate:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Setup toolchain
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Publish refinery-core
uses: actions-rs/cargo@v1
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
with:
command: publish
args: --all-features refinery-core
args: --token $CARGO_TOKEN
- name: Publish refinery-macros
uses: actions-rs/cargo@v1
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
with:
command: publish
args: --all-features refinery-macros
args: --token $CARGO_TOKEN
- name: Publish refinery
uses: actions-rs/cargo@v1
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
with:
command: publish
args: --all-features refinery
args: --token $CARGO_TOKEN
- name: Publish refinery-cli
uses: actions-rs/cargo@v1
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
with:
command: publish
args: --all-features refinery-cli
args: --token $CARGO_TOKEN