Skip to content

Commit 6d2792e

Browse files
committed
refactor: have release in a separate workflow
1 parent d255af3 commit 6d2792e

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,3 @@ jobs:
1717
with:
1818
name: navdata_interface.wasm
1919
path: ./src/wasm_navdata_interface/out/navdata_interface.wasm
20-
- name: Release
21-
uses: softprops/action-gh-release@v1
22-
if: startsWith(github.ref, 'refs/tags/')
23-
with:
24-
files: ./src/wasm_navdata_interface/out/navdata_interface.wasm

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
tags:
4+
- "v*"
5+
- "!v*-rc*"
6+
- "!v*-alpha*"
7+
- "!v*-beta*"
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Build WASM module
16+
run: |
17+
./src/wasm_navdata_interface/scripts/run_docker_cmd.sh ./scripts/build.sh
18+
- name: Release
19+
uses: softprops/action-gh-release@v1
20+
with:
21+
files: ./src/wasm_navdata_interface/out/navdata_interface.wasm

0 commit comments

Comments
 (0)