-
Notifications
You must be signed in to change notification settings - Fork 76
61 lines (49 loc) · 1.69 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
on:
push:
branches:
- main
jobs:
build:
permissions:
id-token: write
contents: write
runs-on: windows-2022
steps:
- uses: actions/checkout@main
- uses: actions/checkout@master
with:
repository: microsoft/vcpkg
path: vcpkg
- name: Get short SHA
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
- uses: microsoft/[email protected]
- run: .\vcpkg\bootstrap-vcpkg.bat
- run: .\vcpkg\vcpkg integrate install
- run: .\vcpkg\vcpkg install freetype:x86-windows-static
- run: .\vcpkg\vcpkg install cpr:x86-windows-static
- run: .\vcpkg\vcpkg install jsoncpp:x86-windows-static
- name: Build solution
run: msbuild KBotExt.sln /p:Platform="x86" /p:Configuration=Release -m
- name: Upload build outputs
uses: actions/upload-artifact@v3
with:
name: KBotExt-${{ env.SHORT_SHA }}
path: Release/KBotExt.exe
- name: Tag Repo
uses: richardsimko/update-tag@v1
with:
tag_name: prerelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: ncipollo/[email protected]
with:
artifacts: "D:/a/KBotExt/KBotExt/Release/KBotExt.exe"
token: ${{ secrets.GITHUB_TOKEN }}
tag: prerelease
name: KBotExt-${{ env.SHORT_SHA }}
allowUpdates: true
generateReleaseNotes: true
makeLatest: true
prerelease: true
updateOnlyUnreleased: true # Only update the latest release if it is not marked as released. Set it to true if needed.