From b21e4d2446c5ea8785cc9692341b8b5337a68706 Mon Sep 17 00:00:00 2001 From: vivet Date: Sat, 25 Apr 2026 08:49:38 +0200 Subject: [PATCH 1/8] Updated --- .github/workflows/build-and-deploy.yml | 12 ++++-------- Directory.Build.props | 2 +- Nano.Eventing.RabbitMq/Nano.Eventing.RabbitMq.csproj | 4 ++-- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 9da168a7..1ddb33e0 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -9,10 +9,6 @@ on: env: APP_NAME: Nano.Library VERSION: 10.0.0-preview1 - NUGET_HOST: https://api.nuget.org/v3/index.json - NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }} - NUGET_HOST_PREVIEW: https://nuget.pkg.github.com/Nano-Core/index.json - NUGET_APIKEY_PREVIEW: ${{ secrets.GITHUB_TOKEN }} jobs: build-and-deploy: runs-on: windows-latest @@ -57,8 +53,8 @@ jobs: if: github.ref == 'refs/heads/master' run: | dotnet nuget push "**/nupkgs/*.nupkg" ` - --source ${{ env.NUGET_HOST }} ` - --api-key ${{ env.NUGET_APIKEY }} ` + --source https://api.nuget.org/v3/index.json ` + --api-key ${{ secrets.NUGET_APIKEY }} ` --skip-duplicate; if ($LastExitCode -ne 0) @@ -70,8 +66,8 @@ jobs: if: github.ref != 'refs/heads/master' run: | dotnet nuget push "**/nupkgs/*.nupkg" ` - --source ${{ env.NUGET_HOST_PREVIEW }} ` - --api-key ${{ env.NUGET_APIKEY_PREVIEW }} ` + --source https://nuget.pkg.github.com/Nano-Core/index.json ` + --api-key ${{ secrets.GITHUB_TOKEN }} ` --skip-duplicate; if ($LastExitCode -ne 0) diff --git a/Directory.Build.props b/Directory.Build.props index 1bc51fcb..73a56341 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -58,7 +58,7 @@ - + diff --git a/Nano.Eventing.RabbitMq/Nano.Eventing.RabbitMq.csproj b/Nano.Eventing.RabbitMq/Nano.Eventing.RabbitMq.csproj index 51531f4e..011a184b 100644 --- a/Nano.Eventing.RabbitMq/Nano.Eventing.RabbitMq.csproj +++ b/Nano.Eventing.RabbitMq/Nano.Eventing.RabbitMq.csproj @@ -2,9 +2,9 @@ - + - + From 3d87c6be0f706285fdde4babec390d777e702390 Mon Sep 17 00:00:00 2001 From: vivet Date: Sat, 25 Apr 2026 09:08:46 +0200 Subject: [PATCH 2/8] Updated --- .github/workflows/build-and-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 1ddb33e0..ae278988 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -8,7 +8,7 @@ on: - master env: APP_NAME: Nano.Library - VERSION: 10.0.0-preview1 + VERSION: 10.0.0-preview2 jobs: build-and-deploy: runs-on: windows-latest @@ -76,7 +76,7 @@ jobs: }; - name: GitHub Release - if: github.ref == 'refs/heads/master' + #if: github.ref == 'refs/heads/master' uses: ncipollo/release-action@v1 with: tag: v${{ env.VERSION }} From c1d1d82184e0e7e6eb46c6c9e492733b8cb11488 Mon Sep 17 00:00:00 2001 From: vivet Date: Sat, 25 Apr 2026 09:23:32 +0200 Subject: [PATCH 3/8] Updated --- .github/workflows/build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index ae278988..0717f9e7 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -84,7 +84,7 @@ jobs: body: | Version: ${{ env.VERSION }} Commit: ${{ github.sha }} - artifacts: "nupkgs/*" + artifacts: "**/nupkgs/*" token: ${{ secrets.GITHUB_TOKEN }} draft: false prerelease: false \ No newline at end of file From d7b5627910c02adafd9721bd172cf7c775d3572c Mon Sep 17 00:00:00 2001 From: vivet Date: Sat, 25 Apr 2026 10:04:07 +0200 Subject: [PATCH 4/8] Updated --- Nano.App/ApiClient/AccessTokenProvider.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Nano.App/ApiClient/AccessTokenProvider.cs b/Nano.App/ApiClient/AccessTokenProvider.cs index 12cad7a7..40e7f8ea 100644 --- a/Nano.App/ApiClient/AccessTokenProvider.cs +++ b/Nano.App/ApiClient/AccessTokenProvider.cs @@ -25,12 +25,7 @@ await this.semaphore try { - if (this.accessToken == null) - { - this.accessToken = await factory(cancellationToken); - } - - return this.accessToken; + return this.accessToken ??= await factory(cancellationToken); } finally { From f7deeb2f4d6d719b1d44971780ee08384bc00f73 Mon Sep 17 00:00:00 2001 From: vivet Date: Sat, 25 Apr 2026 10:14:50 +0200 Subject: [PATCH 5/8] Updated --- .github/workflows/build-and-deploy.yml | 2 +- README.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 0717f9e7..cdda9295 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -79,7 +79,7 @@ jobs: #if: github.ref == 'refs/heads/master' uses: ncipollo/release-action@v1 with: - tag: v${{ env.VERSION }} + tag: v${{ env.VERSION }}.${{ github.run_number }} name: "Release ${{ env.VERSION }}" body: | Version: ${{ env.VERSION }} diff --git a/README.md b/README.md index d1427d74..da0a5021 100644 --- a/README.md +++ b/README.md @@ -181,16 +181,16 @@ In the following table shows the different files and folder strucutre. These packages are all-inclusive packages, where all other Nano packages are included. Easy to get started, but it's recommended to instead select only the packages needed by your application, to avoid unnecessary depdendencies. -| Package | Downloads | | -| ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| [Nano.All](https://github.com/Nano-Core/Nano.Library/tree/master/Nano.All) | [![NuGet](https://img.shields.io/nuget/dt/Nano.All.svg)](https://www.nuget.org/packages/Nano.All/) | [![NuGet](https://img.shields.io/nuget/v/Nano.All.svg)](https://www.nuget.org/packages/Nano.All/) | -| [NanoCore](https://github.com/Nano-Core/Nano.Library/tree/master/NanoCore) | [![NuGet](https://img.shields.io/nuget/dt/NanoCore.svg)](https://www.nuget.org/packages/NanoCore/) | [![NuGet](https://img.shields.io/nuget/v/NanoCore.svg)](https://www.nuget.org/packages/NanoCore/) | +| Package | Downloads | | +| ---------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| Nano.All | [![NuGet](https://img.shields.io/nuget/dt/Nano.All.svg)](https://www.nuget.org/packages/Nano.All/) | [![NuGet](https://img.shields.io/nuget/v/Nano.All.svg)](https://www.nuget.org/packages/Nano.All/) | +| NanoCore | [![NuGet](https://img.shields.io/nuget/dt/NanoCore.svg)](https://www.nuget.org/packages/NanoCore/) | [![NuGet](https://img.shields.io/nuget/v/NanoCore.svg)](https://www.nuget.org/packages/NanoCore/) | The next packages are application packages. Include only one matching the application type you want to create. | Package | Type | Downloads | Latest Version | | ---------------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | -| Nano.App | _`Transitive`_ | [![NuGet](https://img.shields.io/nuget/dt/Nano.App.svg)](https://www.nuget.org/packages/Nano.App/) 0 | [![NuGet](https://img.shields.io/nuget/v/Nano.App.svg)](https://www.nuget.org/packages/Nano.App/) | +| Nano.App | _`Transitive`_ | [![NuGet](https://img.shields.io/nuget/dt/Nano.App.svg)](https://www.nuget.org/packages/Nano.App/) | [![NuGet](https://img.shields.io/nuget/v/Nano.App.svg)](https://www.nuget.org/packages/Nano.App/) | | Nano.App.Api | `Application` | [![NuGet](https://img.shields.io/nuget/dt/Nano.App.Api.svg)](https://www.nuget.org/packages/Nano.App.Api/) | [![NuGet](https://img.shields.io/nuget/v/Nano.App.Api.svg)](https://www.nuget.org/packages/Nano.App.Api/) | | Nano.App.Console | `Application` | [![NuGet](https://img.shields.io/nuget/dt/Nano.App.Console.svg)](https://www.nuget.org/packages/Nano.App.Console/) | [![NuGet](https://img.shields.io/nuget/v/Nano.App.Console.svg)](https://www.nuget.org/packages/Nano.App.Console/) | | Nano.App.Web | `Application` | [![NuGet](https://img.shields.io/nuget/dt/Nano.App.Web.svg)](https://www.nuget.org/packages/Nano.App.Web/) | [![NuGet](https://img.shields.io/nuget/v/Nano.App.Web.svg)](https://www.nuget.org/packages/Nano.App.Web/) | From f6ce61407048639c74708df36196d0d779881bac Mon Sep 17 00:00:00 2001 From: vivet Date: Sat, 25 Apr 2026 11:49:25 +0200 Subject: [PATCH 6/8] Updated --- .github/workflows/build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index cdda9295..69b803f5 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -76,7 +76,7 @@ jobs: }; - name: GitHub Release - #if: github.ref == 'refs/heads/master' + #if: github.ref == 'refs/heads/master' uses: ncipollo/release-action@v1 with: tag: v${{ env.VERSION }}.${{ github.run_number }} From 22d821b83ec215285e9bbeab856329ee5d2d1533 Mon Sep 17 00:00:00 2001 From: vivet Date: Sat, 25 Apr 2026 12:15:01 +0200 Subject: [PATCH 7/8] Updated --- .github/workflows/build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 69b803f5..f271d640 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -87,4 +87,4 @@ jobs: artifacts: "**/nupkgs/*" token: ${{ secrets.GITHUB_TOKEN }} draft: false - prerelease: false \ No newline at end of file + prerelease: ${{ contains(env.VERSION, '-') }} \ No newline at end of file From 54954181ae64a824e1cbcf423ae3a32bb2e907fd Mon Sep 17 00:00:00 2001 From: vivet Date: Sat, 25 Apr 2026 12:24:45 +0200 Subject: [PATCH 8/8] Updated --- .github/workflows/build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index f271d640..9280486b 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -76,7 +76,7 @@ jobs: }; - name: GitHub Release - #if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' uses: ncipollo/release-action@v1 with: tag: v${{ env.VERSION }}.${{ github.run_number }}