Skip to content

Commit becc13d

Browse files
authored
Merge pull request #4 from woshilapin/publish
[ci] Add auto-publish for crates
2 parents ac5ee86 + 10cc8db commit becc13d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish on crates.io
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
publish:
8+
name: Publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Install Rust
13+
uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: stable
16+
profile: minimal
17+
override: true
18+
- name: Cargo login
19+
uses: actions-rs/cargo@v1
20+
with:
21+
command: login
22+
args: -- ${{ secrets.CARGO_TOKEN }}
23+
- name: Publish relations_procmacro
24+
uses: actions-rs/cargo@v1
25+
with:
26+
command: publish
27+
args: --manifest-path relations_procmacro/Cargo.toml
28+
- name: Publish relations
29+
uses: actions-rs/cargo@v1
30+
with:
31+
command: publish

0 commit comments

Comments
 (0)