Skip to content

Commit 245cfe2

Browse files
committed
add release action
1 parent ccabf6a commit 245cfe2

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/plugin.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
on:
22
workflow_dispatch:
3+
push:
4+
tags:
5+
- '*'
36

47
jobs:
58
build:
@@ -19,3 +22,19 @@ jobs:
1922
with:
2023
name: build-artifacts
2124
path: packages/plugin/target/**/*
25+
26+
release:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
if: startsWith(github.ref, 'refs/tags/')
30+
steps:
31+
- uses: actions/download-artifact@v4
32+
33+
- run: |
34+
mkdir release
35+
mv build-artifacts/prx_final/extern_traces.prx
36+
37+
- name: release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
files: release/*

.github/workflows/viewer.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
on:
22
workflow_dispatch:
3+
push:
4+
tags:
5+
- '*'
36

47
jobs:
58
build:
@@ -32,3 +35,21 @@ jobs:
3235
with:
3336
name: build-${{ matrix.platform }}-${{ matrix.target }}
3437
path: target/${{ matrix.target }}/release/${{ matrix.output }}
38+
39+
release:
40+
needs: build
41+
runs-on: ubuntu-latest
42+
if: startsWith(github.ref, 'refs/tags/')
43+
steps:
44+
- uses: actions/download-artifact@v4
45+
46+
- run: |
47+
mkdir release
48+
mv build-macos-latest-aarch64-apple-darwin/extern_traces_viewer ./release/extern_traces_viewer.osx_arm64
49+
mv build-ubuntu-latest-x86_64-unknown-linux-gnu/extern_traces_viewer ./release/extern_traces_viewer.linux_amd64
50+
mv build-windows-latest-x86_64-pc-windows-msvc/extern_traces_viewer.exe ./release/extern_traces.amd64.exe
51+
52+
- name: release
53+
uses: softprops/action-gh-release@v2
54+
with:
55+
files: release/*

0 commit comments

Comments
 (0)