-
Notifications
You must be signed in to change notification settings - Fork 2
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
cedc458
commit c19e3a5
Showing
1 changed file
with
51 additions
and
0 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 |
---|---|---|
@@ -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 }} | ||
|
||
- 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/dist # Adjust based on your build output directory | ||
retention-days: 7 # Artifacts will be stored for 7 days |