Build GlanceThing and attach to release #3
Workflow file for this run
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
name: Build GlanceThing and attach to release | |
on: | |
release: | |
types: [created] | |
permissions: | |
contents: write | |
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 ./* | |
working-directory: ./client/dist | |
- name: Upload the zip to the GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: /tmp/glancething-client-*.zip |