Skip to content

Windows Installer

Windows Installer #3

name: Windows Installer
permissions:
contents: write
on:
workflow_dispatch:
release:
types:
- published
jobs:
build-windows-installer:
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.19.0
cache: npm
- name: Install dependencies
run: npm ci
- name: Build Windows installer
env:
GH_TOKEN: ${{ github.token }}
run: npm run dist:win
- name: Upload workflow artifact
uses: actions/upload-artifact@v4
with:
name: sorbet-windows-installer
path: release/*.exe
if-no-files-found: error
- name: Upload release asset
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: gh release upload "${{ github.event.release.tag_name }}" release/*.exe --clobber