Skip to content

Workflow file for this run

name: Quasar Electron Build and Release
on:
release:
types:
- published
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS Environment
uses: actions/setup-node@v3
with:
node-version: '20'
- run: yarn install && npm -g install @quasar/cli
- run: quasar build --mode electron --target darwin --target linux
- run: zip -r ./Typesense-Dashboard-linux-x64-${{ github.ref_name }}.zip ./dist/electron/Typesense-Dashboard-linux-x64
- run: zip -r ./Typesense-Dashboard-darwin-x64-${{ github.ref_name }}.zip ./dist/electron/Typesense-Dashboard-darwin-x64
- name: Upload a Release Asset linux
run: gh release upload ${{ github.ref_name }} ./Typesense-Dashboard-linux-x64-${{ github.ref_name }}.zip --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload a Release Asset darwin
run: gh release upload ${{ github.ref_name }} ./Typesense-Dashboard-darwin-x64-${{ github.ref_name }}.zip --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS Environment
uses: actions/setup-node@v3
with:
node-version: '20'
- run: yarn install && npm -g install @quasar/cli electron-installer-zip
- run: quasar build --mode electron --target win32
- run: electron-installer-zip ./dist/electron/Typesense-Dashboard-win32-x64 ./Typesense-Dashboard-win32-x64-${{ github.ref_name }}.zip
- name: Upload a Release Asset win32
run: gh release upload ${{ github.ref_name }} ./Typesense-Dashboard-win32-x64-${{ github.ref_name }}.zip --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}