Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: simplify release script

Gabriel Stein0fd35ed3d916
diff --git a/.github/workflows/build-and-notarize.yml b/.github/workflows/build-and-notarize.yml
index 9a915b5c9..cb4e14163 100644
--- a/.github/workflows/build-and-notarize.yml
+++ b/.github/workflows/build-and-notarize.yml
@@ -67,7 +67,7 @@ jobs:
echo "APPLE_API_KEY=$API_KEY_PATH" >> $GITHUB_ENV
- name: Build Application
- run: ${{ matrix.build_cmd }}
+ run: ${{ matrix.build_cmd }} -- --publish never
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
# Enable signing only for macOS non-PR builds
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4cc39ff01..1695c8f92 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -127,7 +127,7 @@ jobs:
npm version $VERSION --no-git-tag-version
- name: Build Application
- run: ${{ matrix.build_cmd }}
+ run: ${{ matrix.build_cmd }} -- --publish always
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
# Certificate password for signing
@@ -138,51 +138,6 @@ jobs:
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- - name: Upload Release Assets
- uses: actions/github-script@v7
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- script: |
- const fs = require('fs');
- const path = require('path');
-
- const distPath = path.join(process.cwd(), 'dist');
- const files = fs.readdirSync(distPath);
-
- // Define which files to upload based on OS
- const patterns = {
- 'macos-latest': ['.dmg', '.zip'],
- 'ubuntu-latest': ['.AppImage', '.deb'],
- 'windows-latest': ['.exe']
- };
-
- const osPatterns = patterns['${{ matrix.os }}'] || [];
- const filesToUpload = files.filter(file =>
- osPatterns.some(pattern => file.endsWith(pattern))
- );
-
- // Extract release ID from upload URL
- const uploadUrl = '${{ needs.create-release.outputs.upload_url }}';
- const releaseId = uploadUrl.match(/\/releases\/(\d+)/)[1];
-
- for (const file of filesToUpload) {
- const filePath = path.join(distPath, file);
- const fileContent = fs.readFileSync(filePath);
-
- console.log(`Uploading ${file}...`);
-
- await github.rest.repos.uploadReleaseAsset({
- owner: context.repo.owner,
- repo: context.repo.repo,
- release_id: parseInt(releaseId),
- name: file,
- data: fileContent,
- headers: {
- 'content-type': 'application/octet-stream',
- 'content-length': fileContent.length
- }
- });
- }
# Security cleanup
- name: Cleanup Certificates