-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
197c02b
commit d9ee70e
Showing
1 changed file
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |