We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31e3612 commit e895fedCopy full SHA for e895fed
.github/workflows/ci.yml
@@ -3,8 +3,6 @@ on:
3
pull_request:
4
push:
5
tags:
6
- - v*
7
- - snapshot*
8
branches:
9
- main
10
@@ -184,7 +182,15 @@ jobs:
184
182
run: |
185
183
cpack -C ${{matrix.build_type}} -G ${{matrix.package_generator}}
186
187
- - name: Publish Release
+ - name: Publish Snapshot Release
+ uses: softprops/action-gh-release@v1
+ if: ${{ (github.ref == 'refs/heads/main/') && matrix.package_generator != '' }}
188
+ with:
189
+ tag_name: "snapshot-${{ github.sha }}"
190
+ files: |
191
+ build/*-*${{ matrix.build_type }}*-*.*
192
+
193
+ - name: Publish Tagged Release
194
uses: softprops/action-gh-release@v1
195
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.package_generator != '' }}
196
with:
.github/workflows/create-snapshots.yml
0 commit comments