Fixed destination logic; updated action to use .net11 preview 4; fixed broken .csproj.
Nightly Build and Release / Build and Release Nightly (push) Failing after 14s
Nightly Build and Release / Build and Release Nightly (push) Failing after 14s
This commit is contained in:
@@ -3,7 +3,7 @@ name: Nightly Build and Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- master
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -17,10 +17,10 @@ jobs:
|
|||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup .NET 9.0
|
- name: Setup .NET 11.0
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.x'
|
dotnet-version: '11.0.100-preview.4.26230.115'
|
||||||
|
|
||||||
# NEW: Authenticate with your private Gitea NuGet registry
|
# NEW: Authenticate with your private Gitea NuGet registry
|
||||||
- name: Add Gitea NuGet Source
|
- name: Add Gitea NuGet Source
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ sealed record GitDestination(DestinationContext Context, string Source, string A
|
|||||||
// gitea source structure = https://gitea.example.com/api/packages/{owner}/nuget/index.json
|
// gitea source structure = https://gitea.example.com/api/packages/{owner}/nuget/index.json
|
||||||
var keyResult = GetApiKey("gitea");
|
var keyResult = GetApiKey("gitea");
|
||||||
if (keyResult is ReadableError error) return error;
|
if (keyResult is ReadableError error) return error;
|
||||||
return new GitDestination(context, $"https://gitea.example.com/api/packages/{repoOwner}/nuget/index.json", keyResult.Unwrap(), verbose).Ok();
|
return new GitDestination(context, $"https://git.main.qwsdcvghyu.com/api/packages/{repoOwner}/nuget/index.json", keyResult.Unwrap(), verbose).Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Result<GitDestination, ReadableError> CreateForGithub(DestinationContext context, string repoOwner, bool verbose = false) {
|
public static Result<GitDestination, ReadableError> CreateForGithub(DestinationContext context, string repoOwner, bool verbose = false) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net11.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>preview</LangVersion>
|
<LangVersion>preview</LangVersion>
|
||||||
|
|||||||
Reference in New Issue
Block a user