Skip to content

Commit f09a86b

Browse files
committed
add separate workflow for release
1 parent ebf5647 commit f09a86b

File tree

2 files changed

+33
-10
lines changed

2 files changed

+33
-10
lines changed

.github/workflows/aicirt-release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: AICIrt release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- run: rustup target add wasm32-wasi
21+
- uses: Swatinem/rust-cache@v2
22+
with:
23+
cache-on-failure: true
24+
- name: Release script
25+
run: ./scripts/release.sh --xz
26+
- name: Release
27+
uses: softprops/action-gh-release@v1
28+
if: startsWith(github.ref, 'refs/tags/')
29+
with:
30+
body_path: target/dist/README.md
31+
files: |
32+
target/dist/*.tar.gz
33+
target/dist/*.tar.xz

.github/workflows/aicirt.yml

-10
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: AICIrt
33
on:
44
push:
55
branches: [ "main" ]
6-
tags:
7-
- "v*.*.*"
86
pull_request:
97
branches: [ "main" ]
108

@@ -47,11 +45,3 @@ jobs:
4745
with:
4846
name: aicirt-xz
4947
path: target/dist/*.tar.xz
50-
- name: Release
51-
uses: softprops/action-gh-release@v1
52-
if: startsWith(github.ref, 'refs/tags/')
53-
with:
54-
body_path: target/dist/README.md
55-
files: |
56-
target/dist/*.tar.gz
57-
target/dist/*.tar.xz

0 commit comments

Comments
 (0)