Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom build workflow #404

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/maunal-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: manual-build

on:
workflow_dispatch:
inputs:
branch:
description: "Branch to build"
required: true
default: "main"
os:
description: "Operating System"
required: true
type: choice
options:
- ubuntu-latest
- windows-latest
- macos-latest

jobs:
build:
runs-on: ${{ github.event.inputs.os }}

steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
BrianWhitneyAI marked this conversation as resolved.
Show resolved Hide resolved

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Build/release Electron app
uses: AllenCellSoftware/action-electron-builder@fms-file-explorer
env:
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }}
with:
github_token: ${{ secrets.github_token }}
package_root: "packages/desktop"
release: false # No release, just build
windows_certs: ${{ secrets.CSC_LINK }}
windows_certs_password: ${{ secrets.CSC_KEY_PASSWORD }}

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: electron-build-${{ github.event.inputs.os }}
path: |
packages/desktop/build
retention-days: 7 # Artifacts will be stored for 7 days