chore: ci: forward mac certificates to action

pull/3217/head
Audric Ackermann 6 months ago
parent 537a399de1
commit 0ef9a0e2c6
No known key found for this signature in database

@ -53,8 +53,20 @@ jobs:
# we want this to run always, except on "push" to "master"
if: github.event_name != 'push' || github.ref != 'master'
uses: ./actions/build_no_publish
with:
MAC_CERTIFICATE: ${{ secrets.MAC_CERTIFICATE }}
MAC_CERTIFICATE_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
SIGNING_APPLE_ID: ${{ secrets.SIGNING_APPLE_ID }}
SIGNING_APP_PASSWORD: ${{ secrets.SIGNING_APP_PASSWORD }}
SIGNING_TEAM_ID: ${{ secrets.SIGNING_TEAM_ID }}
- name: Build & publish
# we want this to run only when on "push" to "master"
if: github.event_name == 'push' && github.ref == 'master'
uses: ./actions/build_publish
with:
MAC_CERTIFICATE: ${{ secrets.MAC_CERTIFICATE }}
MAC_CERTIFICATE_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
SIGNING_APPLE_ID: ${{ secrets.SIGNING_APPLE_ID }}
SIGNING_APP_PASSWORD: ${{ secrets.SIGNING_APP_PASSWORD }}
SIGNING_TEAM_ID: ${{ secrets.SIGNING_TEAM_ID }}

@ -1,5 +1,22 @@
name: 'Build Only (no publish)'
description: 'Build only (no publish)'
inputs:
MAC_CERTIFICATE:
description: 'MAC_CERTIFICATE (mac build only)'
required: true
MAC_CERTIFICATE_PASSWORD:
description: 'MAC_CERTIFICATE_PASSWORD (mac build only)'
required: true
SIGNING_APPLE_ID:
description: 'SIGNING_APPLE_ID (mac build only)'
required: true
SIGNING_APP_PASSWORD:
description: 'SIGNING_APP_PASSWORD (mac build only)'
required: true
SIGNING_TEAM_ID:
description: 'SIGNING_TEAM_ID (mac build only)'
required: true
runs:
using: 'composite'
steps:
@ -15,11 +32,11 @@ runs:
source ./build/setup-mac-certificate.sh
$(yarn bin)/electron-builder --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion=${{ github.ref }} --publish=never --config.directories.output=release
env:
MAC_CERTIFICATE: ${{ secrets.MAC_CERTIFICATE }}
MAC_CERTIFICATE_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
SIGNING_APPLE_ID: ${{ secrets.SIGNING_APPLE_ID }}
SIGNING_APP_PASSWORD: ${{ secrets.SIGNING_APP_PASSWORD }}
SIGNING_TEAM_ID: ${{ secrets.SIGNING_TEAM_ID }}
MAC_CERTIFICATE: ${{ inputs.MAC_CERTIFICATE }}
MAC_CERTIFICATE_PASSWORD: ${{ inputs.MAC_CERTIFICATE_PASSWORD }}
SIGNING_APPLE_ID: ${{ inputs.SIGNING_APPLE_ID }}
SIGNING_APP_PASSWORD: ${{ inputs.SIGNING_APP_PASSWORD }}
SIGNING_TEAM_ID: ${{ inputs.SIGNING_TEAM_ID }}
- name: Build linux production binaries
shell: bash

Loading…
Cancel
Save