Skip to content

Commit 84b112b

Browse files
committed
add release workflow
1 parent f27bdd6 commit 84b112b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container: rust:bullseye
11+
steps:
12+
- uses: actions/checkout@v3
13+
- run: cargo build --release
14+
- uses: actions/upload-artifact@v3
15+
with:
16+
name: tstools
17+
path: target/release/tstools
18+
19+
release:
20+
needs: build
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/download-artifact@v3
25+
with:
26+
name: tstools
27+
- run: gh release create ${{ github.ref_name }} tstools
28+
env:
29+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)