Skip to content

Commit 2e12045

Browse files
committed
generate releases
1 parent 6a242a8 commit 2e12045

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Rust
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
profile: minimal
21+
toolchain: stable
22+
override: true
23+
24+
- name: Build
25+
uses: actions-rs/cargo@v1
26+
with:
27+
command: build
28+
args: --release
29+
30+
- name: Create release
31+
uses: ncipollo/release-action@v1
32+
with:
33+
name: nif ${{ github.ref_name }}
34+
artifacts: 'target\release\*.exe'
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
tag: ${{ github.ref }}
37+
generateReleaseNotes: true

0 commit comments

Comments
 (0)