-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a build/release workflow on all platforms
- Loading branch information
1 parent
85d0838
commit 740aaa9
Showing
1 changed file
with
42 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,42 @@ | ||
name: release-dekstop-app | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
jobs: | ||
create-release-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install GitHub CLI | ||
run: sudo apt-get install gh | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.7.0 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Create Draft Release | ||
run: gh release create ${{ github.ref }} --draft --title "Release ${{ github.ref }}" --notes-from-tag | ||
|
||
- name: Enter desktop app directory | ||
run: cd apps/desktop | ||
|
||
- name: electron-publish-linux | ||
run: CI=true GH_TOKEN=${{ secrets.github_token }} pnpm run electron:package:linux | ||
|
||
|
||
|