Skip to content

Commit 49de681

Browse files
Merge branch 'main' into js/taghelper
2 parents 0ebd51a + e852621 commit 49de681

File tree

81 files changed

+306
-279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+306
-279
lines changed

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,15 @@ jobs:
189189
shell: pwsh
190190
run: ./ci-pack.ps1
191191

192-
- name: MyGet Publish
192+
- name: Feedz Publish
193193
shell: pwsh
194194
run: |
195-
dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.MYGET_TOKEN}} -s https://www.myget.org/F/sixlabors/api/v2/package
196-
dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.MYGET_TOKEN}} -s https://www.myget.org/F/sixlabors/api/v3/index.json
197-
# TODO: If github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org
195+
dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.FEEDZ_TOKEN}} -s https://f.feedz.io/sixlabors/sixlabors/nuget/index.json --skip-duplicate
196+
dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.FEEDZ_TOKEN}} -s https://f.feedz.io/sixlabors/sixlabors/symbols --skip-duplicate
197+
198+
- name: NuGet Publish
199+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
200+
shell: pwsh
201+
run: |
202+
dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate
203+
dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ For more information, see the [.NET Foundation Code of Conduct](https://dotnetfo
4545

4646
### Installation
4747

48-
Install stable releases via Nuget; development releases are available via MyGet.
48+
Install stable releases via Nuget; development releases are available via Feedz.io.
4949

50-
| Package Name | Release (NuGet) | Nightly (MyGet) |
50+
| Package Name | Release (NuGet) | Nightly (Feedz.io) |
5151
|--------------------------------|-----------------|-----------------|
52-
| `SixLabors.ImageSharp.Web` | [![NuGet](https://img.shields.io/nuget/v/SixLabors.ImageSharp.Web.svg)](https://www.nuget.org/packages/SixLabors.ImageSharp.Web/) | [![MyGet](https://img.shields.io/myget/sixlabors/vpre/SixLabors.ImageSharp.Web.svg)](https://www.myget.org/feed/sixlabors/package/nuget/SixLabors.ImageSharp.Web) |
52+
| `SixLabors.ImageSharp.Web` | [![NuGet](https://img.shields.io/nuget/v/SixLabors.ImageSharp.Web.svg)](https://www.nuget.org/packages/SixLabors.ImageSharp.Web/) | [![feedz.io](https://img.shields.io/badge/endpoint.svg?url=https%3A%2F%2Ff.feedz.io%2Fsixlabors%2Fsixlabors%2Fshield%2FSixLabors.ImageSharp.Web%2Flatest)](https://f.feedz.io/sixlabors/sixlabors/nuget/index.json) |
5353

5454
## Manual build
5555

ci-pack.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ dotnet clean -c Release
33
$repositoryUrl = "https://github.com/$env:GITHUB_REPOSITORY"
44

55
# Building for packing and publishing.
6-
dotnet pack -c Release --output "$PSScriptRoot/artifacts" /p:RepositoryUrl=$repositoryUrl
6+
dotnet pack -c Release -p:PackageOutputPath="$PSScriptRoot/artifacts" -p:RepositoryUrl=$repositoryUrl

src/ImageSharp.Web.Providers.AWS/AmazonS3ClientFactory.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ internal static class AmazonS3ClientFactory
1818
/// <returns>
1919
/// A new <see cref="AmazonS3Client"/>.
2020
/// </returns>
21+
/// <exception cref="ArgumentException">Invalid configuration.</exception>
2122
public static AmazonS3Client CreateClient(IAWSS3BucketClientOptions options)
2223
{
2324
if (!string.IsNullOrWhiteSpace(options.Endpoint))
@@ -33,14 +34,14 @@ public static AmazonS3Client CreateClient(IAWSS3BucketClientOptions options)
3334
{
3435
// AccessSecret can be empty.
3536
Guard.NotNullOrWhiteSpace(options.Region, nameof(options.Region));
36-
var region = RegionEndpoint.GetBySystemName(options.Region);
37+
RegionEndpoint region = RegionEndpoint.GetBySystemName(options.Region);
3738
AmazonS3Config config = new() { RegionEndpoint = region, UseAccelerateEndpoint = options.UseAccelerateEndpoint };
3839
SetTimeout(config, options.Timeout);
3940
return new AmazonS3Client(options.AccessKey, options.AccessSecret, config);
4041
}
4142
else if (!string.IsNullOrWhiteSpace(options.Region))
4243
{
43-
var region = RegionEndpoint.GetBySystemName(options.Region);
44+
RegionEndpoint region = RegionEndpoint.GetBySystemName(options.Region);
4445
AmazonS3Config config = new() { RegionEndpoint = region, UseAccelerateEndpoint = options.UseAccelerateEndpoint };
4546
SetTimeout(config, options.Timeout);
4647
return new AmazonS3Client(config);

src/ImageSharp.Web/AsyncHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
3-
#nullable disable
43

54
using System.Globalization;
65

src/ImageSharp.Web/Caching/HexEncoder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
3-
#nullable disable
43

54
using System.Runtime.CompilerServices;
65
using System.Runtime.InteropServices;

src/ImageSharp.Web/Caching/ICacheHash.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
3-
#nullable disable
43

54
namespace SixLabors.ImageSharp.Web.Caching;
65

src/ImageSharp.Web/Caching/ICacheKey.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
3-
#nullable disable
43

54
using Microsoft.AspNetCore.Http;
65
using SixLabors.ImageSharp.Web.Commands;

src/ImageSharp.Web/Caching/IImageCache.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
3-
#nullable disable
43

54
using SixLabors.ImageSharp.Web.Resolvers;
65

@@ -17,7 +16,7 @@ public interface IImageCache
1716
/// </summary>
1817
/// <param name="key">The cache key.</param>
1918
/// <returns>The <see cref="IImageResolver"/>.</returns>
20-
Task<IImageCacheResolver> GetAsync(string key);
19+
Task<IImageCacheResolver?> GetAsync(string key);
2120

2221
/// <summary>
2322
/// Sets the value associated with the specified key.

0 commit comments

Comments
 (0)