Skip to content

Commit f6c8f2e

Browse files
committed
feat: modify workflow
1 parent 4e7fc9d commit f6c8f2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build_node_shared.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build Node.js Shared Library
22

33
on:
4+
release:
5+
types: [created]
46
pull_request:
57
types: [opened, synchronize, reopened]
68
paths:
@@ -40,12 +42,14 @@ jobs:
4042
touch out/Release/libnode.so.127
4143
4244
- name: Package assets
45+
if: startsWith(github.ref, 'refs/tags/')
4346
run: |
4447
cd out/Release
4548
zip node-shared-linux-x64-${{ matrix.compiler }}.zip libnode.so.127
4649
4750
- name: Publish to release assets
4851
uses: softprops/action-gh-release@v2
52+
if: startsWith(github.ref, 'refs/tags/')
4953
with:
5054
files: |
5155
out/Release/node-shared-linux-x64-${{ matrix.compiler }}.zip

0 commit comments

Comments
 (0)