Skip to content

v2.1.0: initial prompt setting, hot-reload on model switch, electronm… #55

v2.1.0: initial prompt setting, hot-reload on model switch, electronm…

v2.1.0: initial prompt setting, hot-reload on model switch, electronm… #55

Workflow file for this run

name: Release
# Triggers:
# - Pushing a `v*` tag runs the build and publishes a GitHub Release.
# - `workflow_dispatch` lets you run the build manually without cutting a tag.
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build-windows:
name: Build Windows (x64)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: electron/package-lock.json
- name: Install dependencies
working-directory: electron
run: npm ci --legacy-peer-deps
- name: Build renderer + main
working-directory: electron
run: npm run build
- name: Package (electron-builder)
working-directory: electron
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx electron-builder --win --x64 --publish never
- name: Show output
shell: bash
run: ls -la dist/electron-release/
- uses: actions/upload-artifact@v4
with:
name: echo-windows-x64
path: dist/electron-release/*.exe
if-no-files-found: error
retention-days: 14
release:
name: Publish GitHub Release
needs: [build-windows]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Flatten artifacts
run: |
mkdir -p release
find artifacts -type f -exec mv {} release/ \;
ls -la release/
- uses: softprops/action-gh-release@v2
with:
files: release/*
draft: false
prerelease: false
generate_release_notes: true
fail_on_unmatched_files: true