Skip to content

Commit bdd7ff6

Browse files
committed
auto-build
1 parent 0913b3c commit bdd7ff6

File tree

3 files changed

+57
-7
lines changed

3 files changed

+57
-7
lines changed

.github/workflows/auto-assign.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Auto Assign
2+
on:
3+
issues:
4+
types: [opened]
5+
pull_request:
6+
types: [opened]
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
steps:
14+
- name: 'Auto-assign issue'
15+
uses: pozil/auto-assign-issue@v1
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
assignees: sergiye
19+
numOfAssignee: 1

.github/workflows/auto-build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Auto Build
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: windows-2022
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: nuget/setup-nuget@v2
13+
- uses: microsoft/setup-msbuild@v1.1
14+
with:
15+
msbuild-architecture: x64
16+
17+
- uses: dorny/paths-filter@v2
18+
id: changes
19+
with:
20+
filters: |
21+
buildprops:
22+
- 'Directory.Build.props'
23+
24+
- name: NuGet restore
25+
run: nuget restore OpenHardwareMonitor.sln
26+
27+
- name: Build
28+
run: msbuild OpenHardwareMonitor.sln -p:Configuration=Release -p:Platform="Any CPU" -m
29+
30+
- name: Publish build
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: OpenHardwareMonitor
34+
path: |
35+
bin/

OpenHardwareMonitor.csproj

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,7 @@
497497
<VersionNumber Include="@(Targets->'%(Version)')" />
498498
</ItemGroup>
499499
</Target>
500-
<PropertyGroup>
501-
<PostBuildEventDependsOn>
502-
$(PostBuildEventDependsOn);
503-
PostBuildMacros;
504-
</PostBuildEventDependsOn>
505-
<PostBuildEvent>rem echo @(VersionNumber) &gt; ..\version.txt</PostBuildEvent>
506-
</PropertyGroup>
500+
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(Configuration)' == 'Release'">
501+
<Exec Command="for %%f in ($(OutDir)\*) do if not %%~xf==.exe del /S /Q &quot;%%f&quot;" />
502+
</Target>
507503
</Project>

0 commit comments

Comments
 (0)