File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed
Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ tags :
6+ - " *.*.*"
7+ branches :
8+ - " *"
9+
10+ jobs :
11+ build :
12+ name : build-windows
13+ runs-on : windows-latest
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ with :
19+ submodules : recursive
20+ fetch-depth : 0
21+
22+ - name : Figure out if we're running for a tag
23+ id : checktag
24+ run : |
25+ cd ${{ github.workspace }}
26+ If($Env:GITHUB_REF -match "([0-9]+)\.([0-9]+)\.([0-9]+)") {
27+ $IsRelease = "yes";
28+ $Version = $Matches[0];
29+ $VersionMajor = $Matches[1];
30+ $VersionMinor = $Matches[2];
31+ $VersionPatch = $Matches[3];
32+ } Else {
33+ $IsRelease = "no";
34+ $Version = (git describe --dirty --broken --always);
35+ If($Version -match "([0-9]*)\.([0-9]*)\.([0-9]*)-.*") {
36+ $VersionMajor = $Matches[1];
37+ $VersionMinor = $Matches[2];
38+ $VersionPatch = $Matches[3];
39+ } Else {
40+ $VersionMajor = 0;
41+ $VersionMinor = 0;
42+ $VersionPatch = 0;
43+ }
44+ }
45+ Echo ("is_release=" + $IsRelease) >> $Env:GITHUB_OUTPUT;
46+ Echo ("version=" + $Version) >> $Env:GITHUB_OUTPUT;
47+ Echo ("version_major=" + $VersionMajor) >> $Env:GITHUB_OUTPUT;
48+ Echo ("version_minor=" + $VersionMinor) >> $Env:GITHUB_OUTPUT;
49+ Echo ("version_patch=" + $VersionPatch) >> $Env:GITHUB_OUTPUT;
50+
51+ - name : Build all
52+ run : |
53+ cd ${{ github.workspace }}
54+ .\build_all.ps1
55+
56+ - name : Upload installers
57+ uses : actions/upload-artifact@v4
58+ with :
59+ name : installers
60+ path : |
61+ .\install\*.msi
62+
63+ - name : Upload unpacked
64+ uses : actions/upload-artifact@v4
65+ with :
66+ name : unpacked
67+ path : |
68+ .\build\oht-*\*.dll
69+ .\build\oht-*\*.exe
70+ .\build\oht-*\*.pdb
You can’t perform that action at this time.
0 commit comments