Skip to content

Build Windows Releases #15

Build Windows Releases

Build Windows Releases #15

Workflow file for this run

# .github/workflows/build-windows.yml
name: Build Windows Releases
on:
workflow_dispatch:
jobs:
build-win32-x64:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: get-package-version
id: package-version
uses: beaconbrigade/[email protected]
- name: Install Dependencies
run: npm i
- name: Build script
run: ./build/build.ps1
- name: List files
id: filelist
uses: the-coding-turtle/[email protected]
with:
directory: "out/make/squirrel.windows/x64"
- name: Print files
run: echo "${{ steps.filelist.outputs.files }}"
- name: Publish Release
run: gh release upload v${{ steps.package-version.outputs.version}} "out/make/squirrel.windows/x64/RELEASES" "out/make/squirrel.windows/x64/Witsy-${{ steps.package-version.outputs.version}}-win32-x64 Setup.exe" "out/make/squirrel.windows/x64/witsy-${{ steps.package-version.outputs.version}}-win32-x64-full.nupkg"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}