Skip to content

Commit 090800d

Browse files
committed
build: fix ci
1 parent 6aaeee8 commit 090800d

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
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

nuget.config

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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>

0 commit comments

Comments
 (0)