Skip to content

Commit 0f10c24

Browse files
Desktop: Enable manual trigger for Mac and Windows builds (#3736)
1 parent 2f5ccad commit 0f10c24

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build-mac-bundle.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build Mac Bundle
22

33
on:
4+
workflow_dispatch: {}
45
push:
56
branches:
67
- master
@@ -82,6 +83,7 @@ jobs:
8283
path: target/artifacts
8384

8485
- name: Sign and Notarize Mac Bundle Preparation
86+
if: github.ref == 'refs/heads/master'
8587
env:
8688
APPLE_CERT_BASE64: ${{ secrets.APPLE_CERT_BASE64 }}
8789
APPLE_CERT_PASSWORD: ${{ secrets.APPLE_CERT_PASSWORD }}
@@ -115,6 +117,7 @@ jobs:
115117
EOF
116118
117119
- name: Sign and Notarize Mac Bundle
120+
if: github.ref == 'refs/heads/master'
118121
env:
119122
APPLE_EMAIL: ${{ secrets.APPLE_EMAIL }}
120123
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
@@ -147,6 +150,7 @@ jobs:
147150
spctl -a -vv "$APP_PATH"
148151
149152
- name: Upload Mac Bundle Signed
153+
if: github.ref == 'refs/heads/master'
150154
uses: actions/upload-artifact@v4
151155
with:
152156
name: graphite-mac-bundle-signed

.github/workflows/build-win-bundle.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build Windows Bundle
22

33
on:
4+
workflow_dispatch: {}
45
push:
56
branches:
67
- master
@@ -87,6 +88,7 @@ jobs:
8788
path: target/artifacts
8889

8990
- name: Azure login
91+
if: github.ref == 'refs/heads/master'
9092
uses: azure/login@v1
9193
with:
9294
client-id: ${{ secrets.AZURE_CLIENT_ID }}
@@ -95,6 +97,7 @@ jobs:
9597
enable-AzPSSession: true
9698

9799
- name: Sign
100+
if: github.ref == 'refs/heads/master'
98101
uses: azure/artifact-signing-action@v1
99102
with:
100103
endpoint: https://eus.codesigning.azure.net/
@@ -115,6 +118,7 @@ jobs:
115118
correlation-id: ${{ github.sha }}
116119

117120
- name: Verify Signatures
121+
if: github.ref == 'refs/heads/master'
118122
shell: pwsh
119123
run: |
120124
$ErrorActionPreference = "Stop"
@@ -161,6 +165,7 @@ jobs:
161165
}
162166
163167
- name: Upload Windows Bundle Signed
168+
if: github.ref == 'refs/heads/master'
164169
uses: actions/upload-artifact@v4
165170
with:
166171
name: graphite-windows-bundle-signed

0 commit comments

Comments
 (0)