try windows build

This commit is contained in:
Anantha Kumaran 2022-08-02 18:20:34 +05:30
parent 39275cf832
commit 45b73ed709
1 changed files with 26 additions and 0 deletions

View File

@ -2,6 +2,8 @@ name: Release
on:
push:
branches:
- ci/*
tags:
- '*'
@ -45,3 +47,27 @@ jobs:
paisa-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
windows-binary:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-node@v3
with:
node-version: 17
- uses: actions/setup-go@v3
with:
go-version: '1.18.1'
- run: |
choco install sqlite
npm install
./node_modules/.bin/esbuild web/src/index.ts --bundle --outfile=web/static/dist.js
go build
cp paisa.exe paisa-windows-amd64.exe
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
paisa-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}