Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed May 24, 2024
1 parent 197c02b commit d9ee70e
Showing 1 changed file with 49 additions and 13 deletions.
62 changes: 49 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,65 @@
name: Release Application

on:
workflow_dispatch:
push:
branches:
- main
- pre-release
- test

jobs:
release:
build-and-publish:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]

include:
# - os: macos-latest
# name: darwin
# arch: x64
# - os: macos-latest
# name: darwin
# arch: arm64
- os: windows-latest
name: win32
arch: x64
- os: ubuntu-latest
name: linux
arch: x64
- os: ubuntu-latest
name: linux
arch: arm64
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 20
- name: install dependencies
- name: Checkout Repository
uses: actions/checkout@v2

- name: Decode and Install Certificate
if: matrix.os == 'macos-latest'
run: |
npm install
npm run package
echo ${{ secrets.MACOS_CERT }} | base64 --decode > certificate.p12
security create-keychain -p action build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p action build.keychain
security import certificate.p12 -k build.keychain -P ${{ secrets.MACOS_CERT_PASSWORD }} -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k action build.keychain
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Dependencies
run: npm ci

- name: Build Application
run: npm run build

- name: publish
- name: Publish Electron App
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npm run publish
run: npm run electron:publish -- --platform=${{ matrix.name }} --arch=${{ matrix.arch }}

0 comments on commit d9ee70e

Please sign in to comment.