Skip to content

Commit eecd285

Browse files
authored
Update cmake-pack-sources.yml
1 parent cf84648 commit eecd285

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed
Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: CMake pack sources
22

3-
on:
4-
push:
5-
branches: [ "master" ]
3+
on: push
64

75
env:
86
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -21,17 +19,12 @@ jobs:
2119
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
2220

2321
- name: Build GLTemplate.zip
24-
run: cmake --build ${{github.workspace}}/build --target GLTemplate-zip --config ${{env.BUILD_TYPE}}
22+
run: cmake --build ${{github.workspace}}/build --target GLTemplate-zip --target GLTemplate-minimal-zip --config ${{env.BUILD_TYPE}}
2523

26-
- uses: actions/upload-artifact@v4
24+
- name: Release
25+
uses: softprops/action-gh-release@v2
26+
if: startsWith(github.ref, 'refs/tags/')
2727
with:
28-
name: complete
29-
path: ${{github.workspace}}/build/GLTemplate.zip
30-
31-
- name: Build GLTemplate.zip
32-
run: cmake --build ${{github.workspace}}/build --target GLTemplate-minimal-zip --config ${{env.BUILD_TYPE}}
33-
34-
- uses: actions/upload-artifact@v4
35-
with:
36-
name: minimal
37-
path: ${{github.workspace}}/build/GLTemplate-minimal.zip
28+
files: |
29+
${{github.workspace}}/build/GLTemplate.zip
30+
${{github.workspace}}/build/GLTemplate-minimal.zip

0 commit comments

Comments
 (0)