Skip to content

Commit 9afa80e

Browse files
committed
Small streamline to package upload to release
1 parent 6a7ce19 commit 9afa80e

1 file changed

Lines changed: 7 additions & 28 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
if-no-files-found: ignore
129129

130130
# ===========================================================================
131-
# macOS Signing and Notarization (Release only)
131+
# macOS Signing and Notarization
132132
# ===========================================================================
133133
sign-macos:
134134
name: Sign & Notarize (macOS)
@@ -156,9 +156,6 @@ jobs:
156156
rmdir "$SUBDIR"
157157
ls -la
158158
159-
# -----------------------------------------------------------------------
160-
# Install Apple Certificates
161-
# -----------------------------------------------------------------------
162159
- name: Install Apple Certificates
163160
env:
164161
MACOS_CERTIFICATE: ${{ secrets.PROD_MACOS_CERTIFICATE }}
@@ -186,9 +183,6 @@ jobs:
186183
IDENTITY=$(security find-identity -v -p codesigning $KEYCHAIN_PATH | grep "Developer ID Application" | head -1 | awk -F'"' '{print $2}')
187184
echo "APPLE_CODE_SIGN_IDENTITY_APP=$IDENTITY" >> $GITHUB_ENV
188185
189-
# -----------------------------------------------------------------------
190-
# Setup Notarization Credentials
191-
# -----------------------------------------------------------------------
192186
- name: Setup Notarization
193187
env:
194188
NOTARIZATION_APPLE_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_APPLE_ID }}
@@ -201,9 +195,6 @@ jobs:
201195
--team-id "$NOTARIZATION_TEAM_ID"
202196
echo "APPLE_NOTARIZE_KEYCHAIN_PROFILE=notarize-profile" >> $GITHUB_ENV
203197
204-
# -----------------------------------------------------------------------
205-
# Sign and Notarize
206-
# -----------------------------------------------------------------------
207198
- name: Sign and Notarize
208199
env:
209200
ENTITLEMENTS_FILE: ${{ github.workspace }}/app.entitlements
@@ -226,17 +217,10 @@ jobs:
226217
./scripts/sign_and_notarize.sh "$CLI_PATH" --notarize
227218
fi
228219
229-
# -----------------------------------------------------------------------
230-
# Repackage
231-
# -----------------------------------------------------------------------
232220
- name: Repackage
233221
run: |
234222
cd packages
235223
236-
# Debug: show what we have
237-
echo "Contents of packages directory:"
238-
ls -la
239-
240224
# Remove original unsigned package
241225
rm -f *.tar.gz
242226
@@ -258,19 +242,13 @@ jobs:
258242
name: package-macos-signed
259243
path: packages/*-signed.tar.gz
260244

261-
- name: Upload to Release
262-
if: github.event_name == 'release'
263-
uses: softprops/action-gh-release@v2
264-
with:
265-
files: packages/*-signed.tar.gz
266-
267245
# ===========================================================================
268-
# Upload unsigned packages to release
246+
# Upload packages to release
269247
# ===========================================================================
270248
release:
271249
name: Upload to Release
272-
needs: build
273-
if: github.event_name == 'release'
250+
needs: [build, sign-macos]
251+
if: github.event_name == 'release' && !failure() && !cancelled()
274252
runs-on: ubuntu-latest
275253

276254
steps:
@@ -283,6 +261,7 @@ jobs:
283261
uses: softprops/action-gh-release@v2
284262
with:
285263
files: |
286-
artifacts/**/*.zip
264+
artifacts/package-macos-signed/*.tar.gz
287265
artifacts/package-ubuntu-*/*.tar.gz
288-
artifacts/**/*.deb
266+
artifacts/package-ubuntu-*/*.deb
267+
artifacts/package-windows-*/*.zip

0 commit comments

Comments
 (0)