-
Notifications
You must be signed in to change notification settings - Fork 4
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
lijiahao
committed
Sep 20, 2024
1 parent
6f1c838
commit 88af8ff
Showing
4 changed files
with
45 additions
and
20 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 |
---|---|---|
|
@@ -13,21 +13,23 @@ jobs: | |
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
arch: [x64, arm64] | ||
exclude: | ||
- os: ubuntu-latest | ||
arch: arm64 | ||
- os: windows-latest | ||
arch: arm64 | ||
exclude: | ||
- os: ubuntu-latest | ||
arch: arm64 | ||
- os: windows-latest | ||
arch: arm64 | ||
|
||
steps: | ||
- name: Check out Git repository | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
|
||
- name: Set up node_modules cache | ||
uses: actions/cache@v4 | ||
continue-on-error: false | ||
|
@@ -41,12 +43,45 @@ jobs: | |
run: yarn | ||
|
||
- name: Build/release Electron app | ||
uses: samuelmeuli/action-electron-builder@v1 | ||
uses: samuelmeuli/action-electron-builder@v1.6.0 | ||
with: | ||
# GitHub token, automatically provided to the action | ||
# (No need to define this secret in the repo settings) | ||
github_token: ${{ secrets.github_token }} | ||
|
||
# If the commit is tagged with a version (e.g. "v1.0.0"), | ||
# release the app after building | ||
release: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
release: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
# if: startsWith(github.ref, 'refs/tags/v') | ||
|
||
- name: Publish Linux AppImage | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: XStreaming-linux.AppImage | ||
path: | | ||
dist/*.AppImage | ||
if: matrix.os == 'ubuntu-latest' && contains(github.event.head_commit.message, '[build]') | ||
|
||
- name: Publish Linux DEB | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: XStreaming-linux.deb | ||
path: | | ||
dist/*.deb | ||
if: matrix.os == 'ubuntu-latest' && contains(github.event.head_commit.message, '[build]') | ||
|
||
- name: Publish Mac DMG | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: XStreaming-macos.dmg | ||
path: | | ||
dist/*.dmg | ||
if: matrix.os == 'macos-latest' && contains(github.event.head_commit.message, '[build]') | ||
|
||
- name: Publish Windows EXE | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: XStreaming-win.zip | ||
path: | | ||
dist/*.exe | ||
if: matrix.os == 'windows-latest' && contains(github.event.head_commit.message, '[build]') |
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
Binary file not shown.
Binary file not shown.