Desktop: Enable manual trigger for Mac and Windows builds (#3736)
This commit is contained in:
parent
2f5ccad5ea
commit
0f10c242e2
|
|
@ -1,6 +1,7 @@
|
||||||
name: Build Mac Bundle
|
name: Build Mac Bundle
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch: {}
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
@ -82,6 +83,7 @@ jobs:
|
||||||
path: target/artifacts
|
path: target/artifacts
|
||||||
|
|
||||||
- name: Sign and Notarize Mac Bundle Preparation
|
- name: Sign and Notarize Mac Bundle Preparation
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
env:
|
env:
|
||||||
APPLE_CERT_BASE64: ${{ secrets.APPLE_CERT_BASE64 }}
|
APPLE_CERT_BASE64: ${{ secrets.APPLE_CERT_BASE64 }}
|
||||||
APPLE_CERT_PASSWORD: ${{ secrets.APPLE_CERT_PASSWORD }}
|
APPLE_CERT_PASSWORD: ${{ secrets.APPLE_CERT_PASSWORD }}
|
||||||
|
|
@ -115,6 +117,7 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Sign and Notarize Mac Bundle
|
- name: Sign and Notarize Mac Bundle
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
env:
|
env:
|
||||||
APPLE_EMAIL: ${{ secrets.APPLE_EMAIL }}
|
APPLE_EMAIL: ${{ secrets.APPLE_EMAIL }}
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
|
|
@ -147,6 +150,7 @@ jobs:
|
||||||
spctl -a -vv "$APP_PATH"
|
spctl -a -vv "$APP_PATH"
|
||||||
|
|
||||||
- name: Upload Mac Bundle Signed
|
- name: Upload Mac Bundle Signed
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: graphite-mac-bundle-signed
|
name: graphite-mac-bundle-signed
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
name: Build Windows Bundle
|
name: Build Windows Bundle
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch: {}
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
@ -87,6 +88,7 @@ jobs:
|
||||||
path: target/artifacts
|
path: target/artifacts
|
||||||
|
|
||||||
- name: Azure login
|
- name: Azure login
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: azure/login@v1
|
uses: azure/login@v1
|
||||||
with:
|
with:
|
||||||
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
|
|
@ -95,6 +97,7 @@ jobs:
|
||||||
enable-AzPSSession: true
|
enable-AzPSSession: true
|
||||||
|
|
||||||
- name: Sign
|
- name: Sign
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: azure/artifact-signing-action@v1
|
uses: azure/artifact-signing-action@v1
|
||||||
with:
|
with:
|
||||||
endpoint: https://eus.codesigning.azure.net/
|
endpoint: https://eus.codesigning.azure.net/
|
||||||
|
|
@ -115,6 +118,7 @@ jobs:
|
||||||
correlation-id: ${{ github.sha }}
|
correlation-id: ${{ github.sha }}
|
||||||
|
|
||||||
- name: Verify Signatures
|
- name: Verify Signatures
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
@ -161,6 +165,7 @@ jobs:
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Upload Windows Bundle Signed
|
- name: Upload Windows Bundle Signed
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: graphite-windows-bundle-signed
|
name: graphite-windows-bundle-signed
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue