Workflow file for this run
This file contains hidden or 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: Quasar Electron Build and Release | |
| on: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build-darwin: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup NodeJS Environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npm install && npm -g install @quasar/cli | |
| - run: quasar build --mode electron --target darwin | |
| - run: zip -r ./Typesense-Dashboard-darwin-x64-${{ github.ref_name }}.zip ./dist/electron/Packaged/Typesense-Dashboard-darwin-x64 | |
| - 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-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup NodeJS Environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npm install && npm -g install @quasar/cli | |
| - run: quasar build --mode electron --target linux | |
| - run: zip -r ./Typesense-Dashboard-linux-x64-${{ github.ref_name }}.zip ./dist/electron/Packaged/Typesense-Dashboard-linux-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 }} | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup NodeJS Environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npm install && npm -g install @quasar/cli electron-installer-zip | |
| - run: quasar build --mode electron --target win32 | |
| - run: electron-installer-zip ./dist/electron/Packaged/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 }} |