Skip to content

Commit e895fed

Browse files
committed
Attempt to use action to create snapshot
1 parent 31e3612 commit e895fed

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

.github/workflows/ci.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
pull_request:
44
push:
55
tags:
6-
- v*
7-
- snapshot*
86
branches:
97
- main
108

@@ -184,7 +182,15 @@ jobs:
184182
run: |
185183
cpack -C ${{matrix.build_type}} -G ${{matrix.package_generator}}
186184
187-
- name: Publish Release
185+
- name: Publish Snapshot Release
186+
uses: softprops/action-gh-release@v1
187+
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
188194
uses: softprops/action-gh-release@v1
189195
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.package_generator != '' }}
190196
with:

.github/workflows/create-snapshots.yml

-16
This file was deleted.

0 commit comments

Comments
 (0)