blob: 8352aaa85ce51bf0c695f837cb4a2896d64a190c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
name: Windows
on:
push:
branches: [ main ]
tags: 'v*.*.*'
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1
- name: Windows build
run: msbuild Yuescript.sln /p:Configuration=release /p:Platform=x86
- name: pack
if: startsWith(github.ref, 'refs/tags/')
run: (cd bin\windows\Release && 7z a ..\..\..\yue-windows-x86.7z yue.exe)
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
yue-windows-x86.7z
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|