Skip to content

Commit

Permalink
refactor: have release in a separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperoni505 committed Nov 28, 2023
1 parent d255af3 commit 6d2792e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ jobs:
with:
name: navdata_interface.wasm
path: ./src/wasm_navdata_interface/out/navdata_interface.wasm
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./src/wasm_navdata_interface/out/navdata_interface.wasm
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
tags:
- "v*"
- "!v*-rc*"
- "!v*-alpha*"
- "!v*-beta*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build WASM module
run: |
./src/wasm_navdata_interface/scripts/run_docker_cmd.sh ./scripts/build.sh
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./src/wasm_navdata_interface/out/navdata_interface.wasm

0 comments on commit 6d2792e

Please sign in to comment.