forked from Soneliem/WAIUA
-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (65 loc) · 1.97 KB
/
build.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build and release
on:
push:
tags:
- "v*.*.*"
workflow_call:
inputs:
tag:
required: true
type: string
jobs:
build:
runs-on: windows-latest
env:
TAG: ${{ inputs.tag || github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
ref: ${{ env.TAG }}
- name: Setup .NET Core SDK 6.0.400
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.400
- name: Install dependencies
run: dotnet restore
- name: Build
run: >
dotnet publish .\NOWT\NOWT.csproj
--configuration Release
-p:PublishSingleFile=true
--self-contained false -r win-x64
-o ./inno
- name: Download netcorecheck
shell: pwsh
run: |
Invoke-WebRequest -URI https://go.microsoft.com/fwlink/?linkid=2135256 -OutFile .\inno\netcorecheck.exe
Invoke-WebRequest -URI https://go.microsoft.com/fwlink/?linkid=2135504 -OutFile .\inno\netcorecheck_x64.exe
- name: Download InnoSetup
uses: pwall2222/[email protected]
- name: Package application
run: ISCC.exe ./NOWT.iss
- name: Rename installer
shell: pwsh
run: |
Rename-Item ./inno/out/NOWT.exe NOWT-Installer.exe
- name: Get CHANGELOG
id: changelog
uses: requarks/[email protected]
with:
token: ${{ github.token }}
tag: ${{ env.TAG }}
writeToFile: false
excludeTypes: chore,ci,build,docs,style
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./inno/out/NOWT-Installer.exe
./inno/NOWT.exe
tag_name: ${{ env.TAG }}
body: |
![Release downloads](https://img.shields.io/github/downloads/pwall2222/NOWT/${{ env.TAG }}/total)
${{ steps.changelog.outputs.changes }}