summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release-windows.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml
index 81c2e3d..65ae3d3 100644
--- a/.github/workflows/release-windows.yml
+++ b/.github/workflows/release-windows.yml
@@ -56,8 +56,16 @@ jobs:
# npmRebuild=false: node-pty is already rebuilt for Electron above —
# don't let electron-builder run its opaque rebuild again.
- - name: Package and publish Windows installer
+ - name: Package Windows installer
# quoted — pwsh otherwise splits the -c.npmRebuild token apart
- run: npx electron-builder --win "-c.npmRebuild=false" --publish always
+ run: npx electron-builder --win "-c.npmRebuild=false" --publish never
+
+ # Upload directly — electron-builder's GitHub publisher refuses to
+ # attach assets to releases published more than 2 hours ago.
+ - name: Upload installer to the release
+ shell: pwsh
+ run: |
+ $version = node -p "require('./package.json').version"
+ gh release upload "v$version" "dist/lattex-$version-win-x64.exe" --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}