Skip to content

Commit 18eeaa5

Browse files
committed
Added an option for artifacts in CI
1 parent c0c36b5 commit 18eeaa5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/dev-desktop-builds.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches: [master]
88
workflow_dispatch:
99
inputs:
10+
artifacts:
11+
description: "Generate artifacts"
12+
type: boolean
13+
required: true
14+
default: "false"
1015
sign_macos:
1116
description: "Sign macOS version"
1217
type: boolean
@@ -77,17 +82,19 @@ jobs:
7782
zip -r ${EXPORT_NAME}_${MM_RELEASE}_windows.zip ${EXPORT_NAME}_${MM_RELEASE}_windows
7883
tar zcvf ${EXPORT_NAME}_${MM_RELEASE}_linux.tar.gz ${EXPORT_NAME}_${MM_RELEASE}_linux
7984
- name: Upload Documentation 🚀
80-
if: ${{ github.event.inputs.gen_doc == 'true' }}
85+
if: ${{ github.event.inputs.gen_doc == 'true' && github.event.inputs.artifacts == 'true' }}
8186
uses: actions/upload-artifact@v6
8287
with:
8388
name: documentation
8489
path: ./material_maker/doc/_build/html
8590
- name: Upload Windows Artifact 🚀
91+
if: ${{ github.event.inputs.artifacts == 'true' }}
8692
uses: actions/upload-artifact@v6
8793
with:
8894
name: windows_snapshot
8995
path: build/${{ env.EXPORT_NAME }}_${{ env.MM_RELEASE }}_windows.zip
9096
- name: Upload Linux Artifact 🚀
97+
if: ${{ github.event.inputs.artifacts == 'true' }}
9198
uses: actions/upload-artifact@v6
9299
with:
93100
name: linux_snapshot
@@ -197,6 +204,7 @@ jobs:
197204
xcrun notarytool submit ./build/mac/material_maker_${{ env.MM_RELEASE }}.dmg --apple-id $APPLE_ID --password $NOTARYTOOL_APP_PASSWORD --team-id $APPLE_TEAM_ID --wait
198205
xcrun stapler staple ./build/mac/material_maker_${{ env.MM_RELEASE }}.dmg
199206
- name: Upload Mac OSX Artifact 🚀
207+
if: ${{ github.event.inputs.artifacts == 'true' }}
200208
uses: actions/upload-artifact@v6
201209
with:
202210
name: macos_snapshot

0 commit comments

Comments
 (0)