File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 77
88jobs :
99 build-windows :
10- runs-on : windows-2022
10+ runs-on : windows-latest
1111
1212 steps :
1313 - name : Enable long paths in git
@@ -32,25 +32,17 @@ jobs:
3232 with :
3333 nsis-version : ' 3.11'
3434
35- - name : Restore dependencies
36- run : dotnet restore Everywhere.sln
37-
3835 - name : Get version from tag
3936 id : get_version
4037 shell : pwsh
4138 run : |
4239 $version = $env:GITHUB_REF -replace 'refs/tags/v', ''
4340 echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
4441
45- - name : Build Everywhere.Windows (Release)
46- shell : pwsh
47- run : |
48- dotnet build src/Everywhere.Windows/Everywhere.Windows.csproj -c Release --no-restore
49-
5042 - name : Publish Everywhere.Windows
5143 shell : pwsh
5244 run : |
53- dotnet publish src/Everywhere.Windows/Everywhere.Windows.csproj -c Release -r win-x64 --self-contained true -p:AssemblyVersion=$env:VERSION -p:FileVersion=$env:VERSION -o ./publish
45+ dotnet publish src/Everywhere.Windows/Everywhere.Windows.csproj -c Release --configfile nuget.config --self-contained true -p:AssemblyVersion=$env:VERSION -p:FileVersion=$env:VERSION -o ./publish
5446
5547 - name : Build NSIS installer
5648 shell : pwsh
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<configuration >
33 <packageSources >
4- <clear />
5- <add key =" nuget.org" value =" https://api.nuget.org/v3/index.json" />
4+ <add key =" nuget.org" value =" https://api.nuget.org/v3/index.json" protocolVersion =" 3" />
65 </packageSources >
6+ <packageSourceMapping >
7+ <packageSource key =" nuget.org" >
8+ <package pattern =" *" />
9+ </packageSource >
10+ </packageSourceMapping >
711</configuration >
You can’t perform that action at this time.
0 commit comments