Skip to content

Commit 3ff6ace

Browse files
committed
Skip regular packages generation while building git tag
Signed-off-by: Remigiusz Kołłątaj <remigiusz.kollataj@gmail.com>
1 parent cfc1cf8 commit 3ff6ace

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
QT_QPA_PLATFORM: offscreen
4646

4747
- name: Create packages
48+
if: startsWith(github.ref, 'refs/heads/')
4849
working-directory: ${{github.workspace}}/build
4950
run: |
5051
cpack -G DEB
@@ -54,6 +55,7 @@ jobs:
5455
mv *.deb *.tar.xz ../master
5556
5657
- name: Get Package Names
58+
if: startsWith(github.ref, 'refs/heads/')
5759
id: package_names
5860
working-directory: ${{github.workspace}}/master
5961
run: |
@@ -67,13 +69,15 @@ jobs:
6769
echo "::set-output name=STANDALONE_ZIP::$STANDALONE_ZIP"
6870
6971
- name: Upload Normal Package
72+
if: startsWith(github.ref, 'refs/heads/')
7073
uses: actions/upload-artifact@v2
7174
with:
7275
name: ${{steps.package_names.outputs.NORMAL_ZIP}}
7376
path: master/${{steps.package_names.outputs.NORMAL}}
7477
retention-days: 90
7578

7679
- name: Upload Standalone Package
80+
if: startsWith(github.ref, 'refs/heads/')
7781
uses: actions/upload-artifact@v2
7882
with:
7983
name: ${{steps.package_names.outputs.STANDALONE_ZIP}}
@@ -190,13 +194,15 @@ jobs:
190194
run: make -j4
191195

192196
- name: Create packages
197+
if: startsWith(github.ref, 'refs/heads/')
193198
working-directory: ${{github.workspace}}/build
194199
run: |
195200
cpack -G DragNDrop
196201
mkdir ../master
197202
mv *.dmg ../master
198203
199204
- name: Get Package Names
205+
if: startsWith(github.ref, 'refs/heads/')
200206
id: package_names
201207
working-directory: ${{github.workspace}}/master
202208
run: |
@@ -206,6 +212,7 @@ jobs:
206212
echo "::set-output name=NORMAL_ZIP::$NORMAL_ZIP"
207213
208214
- name: Upload Normal Package
215+
if: startsWith(github.ref, 'refs/heads/')
209216
uses: actions/upload-artifact@v2
210217
with:
211218
name: ${{steps.package_names.outputs.NORMAL_ZIP}}
@@ -258,6 +265,7 @@ jobs:
258265
run: cmake --build . --config Release
259266

260267
- name: Create Packages
268+
if: startsWith(github.ref, 'refs/heads/')
261269
working-directory: ${{github.workspace}}/build
262270
run: |
263271
cpack -G 7Z
@@ -267,6 +275,7 @@ jobs:
267275
move *.7z ..\master
268276
269277
- name: Get Package Names
278+
if: startsWith(github.ref, 'refs/heads/')
270279
id: package_names
271280
shell: bash
272281
working-directory: ${{github.workspace}}/master
@@ -281,13 +290,15 @@ jobs:
281290
echo "::set-output name=STANDALONE_ZIP::$STANDALONE_ZIP"
282291
283292
- name: Upload Normal Package
293+
if: startsWith(github.ref, 'refs/heads/')
284294
uses: actions/upload-artifact@v2
285295
with:
286296
name: ${{steps.package_names.outputs.NORMAL_ZIP}}
287297
path: master\${{steps.package_names.outputs.NORMAL}}
288298
retention-days: 90
289299

290300
- name: Upload Standalone Package
301+
if: startsWith(github.ref, 'refs/heads/')
291302
uses: actions/upload-artifact@v2
292303
with:
293304
name: ${{steps.package_names.outputs.STANDALONE_ZIP}}

0 commit comments

Comments
 (0)