Skip to content

Commit 1ccada2

Browse files
committed
Update build script
* Add `NuGet.Config` to satisfy CI pipeline * Switch `nuget restore` to `dotnet restore`
1 parent 4fa945c commit 1ccada2

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

.github/workflows/.build-and-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ jobs:
7575
with:
7676
dotnet-version: ${{ needs.Variables.outputs.dotnet_sdk_version }}
7777

78-
- name: ♺ Execute nuget restore
79-
run: nuget restore
80-
if: steps.cache-nuget.outputs.cache-hit != 'true'
81-
8278
- name: 🧰 Setup BuildToolkit
8379
uses: moryx-industry/setup-buildtoolkit@v1
8480

81+
- name: ♺ Execute nuget restore
82+
run: dotnet restore
83+
if: steps.cache-nuget.outputs.cache-hit != 'true'
84+
8585
- name: 🔨 Execute dotnet build
8686
run: |
8787
.\set-version.ps1 -RefName ${{ github.ref_name }} -IsTag ${{ github.ref_type == 'tag' && 1 || 0 }} -BuildNumber ${{ github.run_number }} -CommitHash ${{ github.sha }}

NuGet.Config

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageRestore>
4+
<!-- Allow NuGet to download missing packages -->
5+
<add key="enabled" value="True" />
6+
7+
<!-- Automatically check for missing packages during build in Visual Studio -->
8+
<add key="automatic" value="True" />
9+
</packageRestore>
10+
11+
<packageSources>
12+
<clear />
13+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
14+
</packageSources>
15+
</configuration>

myget.feeds

Whitespace-only changes.

src/Moryx.Cli/Moryx.Cli.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<IsPackable>true</IsPackable>
1010
<PackAsTool>true</PackAsTool>
11+
<PackageReadmeFile>README.md</PackageReadmeFile>
1112
<ToolCommandName>moryx</ToolCommandName>
1213
<PackageOutputPath>./nupkg</PackageOutputPath>
1314
</PropertyGroup>
@@ -21,5 +22,8 @@
2122
<ProjectReference Include="..\Moryx.Cli.Commands\Moryx.Cli.Commands.csproj" />
2223
</ItemGroup>
2324

25+
<ItemGroup>
26+
<None Include="..\..\README.md" Pack="true" PackagePath=""/>
27+
</ItemGroup>
2428

2529
</Project>

0 commit comments

Comments
 (0)