Build & Release QBIV #8
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: Build & Release QBIV | |
| on: | |
| push: | |
| tags: | |
| - "v*" # Triggers on version tags like v1.0.0, v2.1.3, etc. | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} # Needed for electron-builder publishing | |
| AI_API_BASE: ${{ secrets.AI_API_BASE }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 # Latest stable LTS (better than 18) | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build app with electron-builder | |
| run: npm run build | |
| - name: Upload to GitHub Releases | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| dist/**/*.dmg | |
| dist/**/*Setup*.exe | |
| dist/**/*.AppImage | |
| dist/**/*.deb | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |