Skip to content

Commit

Permalink
fix: client node types, github build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
BluDood committed Oct 23, 2024
1 parent ecdadaa commit 34f0e2a
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 73 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/build-client.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/build-desktop.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/build-release.yml
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
22 changes: 20 additions & 2 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@types/node": "^22.7.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-legacy": "^5.4.2",
Expand All @@ -30,4 +31,4 @@
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1"
}
}
}

0 comments on commit 34f0e2a

Please sign in to comment.