-
Notifications
You must be signed in to change notification settings - Fork 157
46 lines (40 loc) · 1.06 KB
/
release-raft.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
name: Release
on:
push:
tags:
- "v*"
- "!v*-alpha*"
- "!v*-beta*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Rust
uses: actions-rs/[email protected]
with:
toolchain: nightly
profile: minimal
override: true
- name: Publish openraft
run: cd openraft && cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
# release:
# needs: publish
# runs-on: ubuntu-latest
# steps:
# - name: Setup | Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# # save tag name in var "tag"
# - name: Extract tag
# id: vars
# run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
# - name: Build | Publish
# uses: softprops/action-gh-release@v1
# with:
# body_path: change-log/${{ steps.vars.outputs.tag }}.md
# draft: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}