Browse Source

Using local_packages folder for CI.

BDisp 10 months ago
parent
commit
4288b71153
2 changed files with 9 additions and 5 deletions
  1. 8 5
      .github/workflows/dotnet-core.yml
  2. 1 0
      nuget.config

+ 8 - 5
.github/workflows/dotnet-core.yml

@@ -78,8 +78,8 @@ jobs:
   
 
   build_release:
-    # Ensure that RELEASE builds are not broken
     runs-on: ubuntu-latest
+
     steps:
     - name: Checkout code
       uses: actions/checkout@v4
@@ -90,11 +90,14 @@ jobs:
         dotnet-version: 8.x
         dotnet-quality: 'ga'
 
-    - name: Restore dependencies
-      run: dotnet restore
+    - name: Build local NuGet package
+      run: dotnet pack --configuration Release -o ./local_packages
 
-    - name: Build Release
-      run: dotnet build --configuration Release
+    - name: Upload package artifact
+      uses: actions/upload-artifact@v4
+      with:
+        name: local_nuget_package
+        path: ./local_packages/*.nupkg
 
 
     # Note: this step is currently not writing to the gist for some reason

+ 1 - 0
nuget.config

@@ -10,6 +10,7 @@
     <clear />
     <add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
     <add key="LocalPackages" value="Terminal.Gui\bin\Release" />
+    <add key="local_packages" value="Terminal.Gui" />
   </packageSources>
   <packageSourceMapping>
     <packageSource key="nuget">