Skip to content

Commit 041ad8c

Browse files
committed
Update build_binary.yml
1 parent b77856b commit 041ad8c

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

‎.github/workflows/build_binary.yml‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ jobs:
5252
New-Item -ItemType Directory -Force -Path build/out | Out-Null
5353
Copy-Item -Force $dll.FullName -Destination build/out/libcpp_bindings_windows.dll
5454
55-
- name: 'Upload artifacts'
56-
uses: actions/upload-artifact@v4
57-
with:
58-
if-no-files-found: error
59-
name: libcpp_bindings_windows
60-
path: build/out/libcpp_bindings_windows.dll
61-
6255
- name: 'Check tag'
6356
id: check-tag
6457
shell: pwsh
@@ -72,6 +65,22 @@ jobs:
7265
echo "IS_VALID_PACKAGE_VERSION=false" >> $env:GITHUB_OUTPUT
7366
}
7467
68+
- name: 'Upload artifacts'
69+
uses: actions/upload-artifact@v4
70+
with:
71+
if-no-files-found: error
72+
name: libcpp_bindings_windows
73+
path: build/out/libcpp_bindings_windows.dll
74+
75+
- name: 'Create GitHub Release'
76+
if: startsWith(github.ref, 'refs/tags/') && steps.check-tag.outputs.IS_VALID_PACKAGE_VERSION == 'true'
77+
uses: softprops/action-gh-release@v2
78+
with:
79+
name: 'v${{ steps.version.outputs.package_version }}'
80+
tag_name: ${{ github.ref_name }}
81+
generate_release_notes: true
82+
files: build/out/libcpp_bindings_windows.dll
83+
7584
outputs:
7685
package_version: ${{ steps.version.outputs.package_version }}
7786
is_valid_package_version: ${{ steps.check-tag.outputs.IS_VALID_PACKAGE_VERSION }}

0 commit comments

Comments
 (0)