Skip to content

Commit 81df4ef

Browse files
committed
Tweak action workflow
1 parent eff91f8 commit 81df4ef

4 files changed

Lines changed: 28 additions & 10 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
# Setup environment
3030
- name: Checkout
3131
uses: actions/checkout@v3
32+
with:
33+
lfs: true
34+
3235
- name: Dotnet Setup
3336
uses: actions/setup-dotnet@v3
3437
with:
@@ -54,16 +57,23 @@ jobs:
5457

5558
- name: Test
5659
run: dotnet test
60+
61+
- name: Upload Package artifact
62+
uses: actions/upload-pages-artifact@v3
63+
with:
64+
name: NuGet Packages
65+
path: '**/.nupkg'
5766

5867
# Generate and upload docs
5968
- run: dotnet tool update -g docfx
6069
- run: docfx ./docfx.json
6170

62-
- name: Upload artifact
71+
- name: Upload Docs artifact
6372
uses: actions/upload-pages-artifact@v3
6473
with:
65-
# Upload entire repository
74+
name: Docs
6675
path: './Docs/_site'
76+
6777
- name: Deploy to GitHub Pages
6878
id: deployment
6979
uses: actions/deploy-pages@v4

Directory.Build.props

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,38 @@
88
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
99
<DebugType>portable</DebugType>
1010
<GenerateDocumentationFile>True</GenerateDocumentationFile>
11-
11+
1212
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
1313

1414
<CopyToLibraries Condition="'$(CopyToLibraries)'==''">true</CopyToLibraries>
1515
</PropertyGroup>
1616

17+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
18+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
19+
<ResoniteInstallOnBuild>false</ResoniteInstallOnBuild>
20+
</PropertyGroup>
21+
1722
<PropertyGroup Condition="'$(ResonitePath)'==''">
1823
<ResonitePath>$(MSBuildThisFileDirectory)Resonite</ResonitePath>
1924
<ResonitePath Condition="Exists('C:/Program Files (x86)/Steam/steamapps/common/Resonite/')">C:/Program Files (x86)/Steam/steamapps/common/Resonite</ResonitePath>
2025
<ResonitePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')">$(HOME)/.steam/steam/steamapps/common/Resonite</ResonitePath>
2126
<ResonitePath Condition="Exists('D:/Files/Games/Resonite/app/')">D:/Files/Games/Resonite/app</ResonitePath>
2227
<ResonitePath Condition="Exists('G:/SteamLibrary/steamapps/common/Resonite/')">G:/SteamLibrary/steamapps/common/Resonite</ResonitePath>
23-
<ResonitePath Condition="Exists('D:/SteamLibrary/steamapps/common/Resonite')">D:/SteamLibrary/steamapps/common/Resonite</ResonitePath>
28+
<ResonitePath Condition="Exists('D:/SteamLibrary/steamapps/common/Resonite')">D:/SteamLibrary/steamapps/common/Resonite</ResonitePath>
2429
</PropertyGroup>
2530

2631
<PropertyGroup Condition="'$(GamePath)'==''">
27-
<GamePath>$(MSBuildThisFileDirectory)Game</GamePath>
28-
<GamePath Condition="Exists('$(ResonitePath)')">$(ResonitePath)</GamePath>
32+
<GamePath>$(MSBuildThisFileDirectory)Game</GamePath>
33+
<GamePath Condition="Exists('$(ResonitePath)')">$(ResonitePath)</GamePath>
2934
</PropertyGroup>
30-
35+
3136
<PropertyGroup Condition="'$(ResoniteCachePath)' == ''">
3237
<ResoniteCachePath Condition="Exists('S:/Resonite/')">S:/Resonite/</ResoniteCachePath>
3338
<ResoniteCachePath Condition="Exists('D:/TempFiles/Resonite/')">D:/TempFiles/Resonite/</ResoniteCachePath>
3439
</PropertyGroup>
3540

3641
<PropertyGroup Condition="'$(ResoniteDataPath)'==''">
37-
<ResoniteDataPath Condition="Exists('D:/TempFiles/Resonite/Data')">D:/TempFiles/Resonite/Data</ResoniteDataPath>
42+
<ResoniteDataPath Condition="Exists('D:/TempFiles/Resonite/Data')">D:/TempFiles/Resonite/Data</ResoniteDataPath>
3843
</PropertyGroup>
3944

4045
</Project>

MonkeyLoader.sln

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
44
VisualStudioVersion = 17.5.33516.290
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MonkeyLoader", "MonkeyLoader\MonkeyLoader.csproj", "{74A818DD-B787-4309-B2F9-EA19685206A4}"
7+
ProjectSection(ProjectDependencies) = postProject
8+
{83BB47A1-8208-402D-BEEB-62DC89C0AFC5} = {83BB47A1-8208-402D-BEEB-62DC89C0AFC5}
9+
EndProjectSection
710
EndProject
811
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MonkeyLoader.ConsoleTest", "MonkeyLoader.ConsoleTest\MonkeyLoader.ConsoleTest.csproj", "{15303CB3-F51F-433F-B167-2E85F3A84045}"
912
EndProject

MonkeyLoader/MonkeyLoader.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@
112112
<PackageReference Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'netstandard2.0'" Include="System.Text.Json" Version="10.0.0" />
113113
</ItemGroup>
114114

115-
<ItemGroup>
115+
<!--<ItemGroup>
116116
<ProjectReference Include="..\MonkeyLoader.ConsoleHost\MonkeyLoader.ConsoleHost.csproj">
117117
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
118118
<DisableTransitiveProjectReferences>true</DisableTransitiveProjectReferences>
119119
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
120120
<Private>false</Private>
121121
<ExcludeAssets>all</ExcludeAssets>
122122
</ProjectReference>
123-
</ItemGroup>
123+
</ItemGroup>-->
124124

125125
<!-- Remove `System.*` DLLs from the output folder
126126
<Target Name="ClearReferenceCopyLocalPaths" AfterTargets="ResolveAssemblyReferences">

0 commit comments

Comments
 (0)