|
7 | 7 | branches: [master] |
8 | 8 | workflow_dispatch: |
9 | 9 | inputs: |
| 10 | + artifacts: |
| 11 | + description: "Generate artifacts" |
| 12 | + type: boolean |
| 13 | + required: true |
| 14 | + default: "false" |
10 | 15 | sign_macos: |
11 | 16 | description: "Sign macOS version" |
12 | 17 | type: boolean |
@@ -77,17 +82,19 @@ jobs: |
77 | 82 | zip -r ${EXPORT_NAME}_${MM_RELEASE}_windows.zip ${EXPORT_NAME}_${MM_RELEASE}_windows |
78 | 83 | tar zcvf ${EXPORT_NAME}_${MM_RELEASE}_linux.tar.gz ${EXPORT_NAME}_${MM_RELEASE}_linux |
79 | 84 | - name: Upload Documentation 🚀 |
80 | | - if: ${{ github.event.inputs.gen_doc == 'true' }} |
| 85 | + if: ${{ github.event.inputs.gen_doc == 'true' && github.event.inputs.artifacts == 'true' }} |
81 | 86 | uses: actions/upload-artifact@v6 |
82 | 87 | with: |
83 | 88 | name: documentation |
84 | 89 | path: ./material_maker/doc/_build/html |
85 | 90 | - name: Upload Windows Artifact 🚀 |
| 91 | + if: ${{ github.event.inputs.artifacts == 'true' }} |
86 | 92 | uses: actions/upload-artifact@v6 |
87 | 93 | with: |
88 | 94 | name: windows_snapshot |
89 | 95 | path: build/${{ env.EXPORT_NAME }}_${{ env.MM_RELEASE }}_windows.zip |
90 | 96 | - name: Upload Linux Artifact 🚀 |
| 97 | + if: ${{ github.event.inputs.artifacts == 'true' }} |
91 | 98 | uses: actions/upload-artifact@v6 |
92 | 99 | with: |
93 | 100 | name: linux_snapshot |
@@ -197,6 +204,7 @@ jobs: |
197 | 204 | 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 |
198 | 205 | xcrun stapler staple ./build/mac/material_maker_${{ env.MM_RELEASE }}.dmg |
199 | 206 | - name: Upload Mac OSX Artifact 🚀 |
| 207 | + if: ${{ github.event.inputs.artifacts == 'true' }} |
200 | 208 | uses: actions/upload-artifact@v6 |
201 | 209 | with: |
202 | 210 | name: macos_snapshot |
|
0 commit comments