-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: client node types, github build actions
- Loading branch information
Showing
5 changed files
with
86 additions
and
73 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,64 @@ | ||
name: Build GlanceThing and attach to release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build-desktop: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install Wine | ||
run: | | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get update | ||
sudo apt-get install wine64 wine32 -y | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build the project | ||
run: npm run build:win | ||
|
||
- name: Upload the zip to the GitHub Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: ./dist/glancething-*-setup.exe | ||
|
||
build-client: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./client | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build the project | ||
run: npm run build | ||
|
||
- name: Zip the build output | ||
run: zip -r /tmp/glancething-client-${GITHUB_REF_NAME}.zip dist/* | ||
|
||
- name: Upload the zip to the GitHub Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: /tmp/glancething-client-*.zip |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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