-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
3 changed files
with
86 additions
and
5 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,12 +1,22 @@ | ||
name: Node.js CI | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'package.json' | ||
- 'app/package.json' | ||
- 'app/client/package.json' | ||
- 'README.md' | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
|
||
windows: | ||
name: Build for Windows | ||
|
||
runs-on: windows-latest | ||
|
||
|
@@ -16,10 +26,81 @@ jobs: | |
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22.5.1' | ||
- run: npm version patch --git-tag-version false && cd app && npm version patch --git-tag-version false && cd client && npm version patch --git-tag-version false && cd ..\.. | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Automated Version Bump | ||
push_options: '--force' | ||
skip_dirty_check: true | ||
- run: npm install -g electron-builder | ||
- run: npm install | ||
- run: npm run build | ||
- uses: actions/[email protected] | ||
with: | ||
name: Windows Executables | ||
path: dist/*.exe | ||
|
||
linux: | ||
name: Build for Linux | ||
needs: windows | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22.5.1' | ||
- run: npm install -g electron-builder | ||
- run: npm install | ||
- run: npm run lbuild | ||
- uses: actions/[email protected] | ||
with: | ||
name: Linux Executables | ||
path: | | ||
dist/*.AppImage | ||
dist/*.tar.xz | ||
dist/*.amd64.deb | ||
osx: | ||
name: Build for MacOS | ||
needs: windows | ||
|
||
runs-on: macos-13 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22.5.1' | ||
- run: export OPENSSL_DIR=/usr/local/opt/openssl@3 | ||
- run: npm install -g electron-builder | ||
- run: npm install | ||
- run: npm run lbuild | ||
- uses: actions/[email protected] | ||
with: | ||
name: MacOS Executables | ||
path: dist/*.dmg | ||
|
||
notify: | ||
name: Notify | ||
needs: [osx, linux] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Send message | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
message: | | ||
${{ github.actor }} added a new commit! | ||
${{ github.event.commits[0].message }} | ||
Download: https://nightly.link/SaturnMusic/PC/workflows/main/main?preview | ||
Changelog: https://github.com/${{ github.repository }}/commit/${{github.sha}} | ||
Please star the repository <3 |
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
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