diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml new file mode 100644 index 00000000..4857811b --- /dev/null +++ b/.github/workflows/nuget-publish.yml @@ -0,0 +1,65 @@ +name: Publish NuGet Packages + +on: + workflow_dispatch: + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + environment: production + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x + + - name: Restore + run: dotnet restore + + - name: Build (Release) + run: dotnet build -c Release --no-restore + + - name: Pack (nupkg + snupkg) + run: | + dotnet pack -c Release \ + --no-build \ + -o ./nupkgs \ + /p:IncludeSymbols=true \ + /p:SymbolPackageFormat=snupkg + + - name: NuGet login (Trusted Publishing) + uses: NuGet/login@v1 + id: login + with: + user: CodeBeam + + - name: List packages + run: ls -la ./nupkgs + + - name: Publish packages + run: | + echo "🚀 Publishing..." + + for f in ./nupkgs/*.nupkg; do + echo "📦 $f" + + dotnet nuget push "$f" \ + --api-key ${{ steps.login.outputs.NUGET_API_KEY }} \ + --source https://api.nuget.org/v3/index.json \ + --skip-duplicate \ + || echo "❌ Failed: $f" + done + + - name: Done + run: echo "✅ Publish process completed" diff --git a/.ultimateauth/pack.bat.txt b/.ultimateauth/pack.bat.txt deleted file mode 100644 index fec6d194..00000000 --- a/.ultimateauth/pack.bat.txt +++ /dev/null @@ -1,27 +0,0 @@ -@echo off - -echo ============================== -echo Packing UltimateAuth packages -echo ============================== - -REM eski paketleri temizle -if exist nupkgs ( - echo Cleaning old packages... - rmdir /s /q nupkgs -) - -REM pack işlemi -echo Running dotnet pack... -dotnet pack -c Release -o ./nupkgs - -REM sonuç kontrol -if %errorlevel% neq 0 ( - echo ❌ Pack failed! - pause - exit /b %errorlevel% -) - -echo ✅ Pack completed successfully! -echo Packages are in /nupkgs - -pause \ No newline at end of file diff --git a/.ultimateauth/package.bat b/.ultimateauth/package.bat deleted file mode 100644 index fec6d194..00000000 --- a/.ultimateauth/package.bat +++ /dev/null @@ -1,27 +0,0 @@ -@echo off - -echo ============================== -echo Packing UltimateAuth packages -echo ============================== - -REM eski paketleri temizle -if exist nupkgs ( - echo Cleaning old packages... - rmdir /s /q nupkgs -) - -REM pack işlemi -echo Running dotnet pack... -dotnet pack -c Release -o ./nupkgs - -REM sonuç kontrol -if %errorlevel% neq 0 ( - echo ❌ Pack failed! - pause - exit /b %errorlevel% -) - -echo ✅ Pack completed successfully! -echo Packages are in /nupkgs - -pause \ No newline at end of file diff --git a/README.md b/README.md index b3221c5b..cb1ab5fd 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ ![License](https://img.shields.io/github/license/CodeBeamOrg/UltimateAuth) [![Discord](https://img.shields.io/discord/1459498792192839774?color=%237289da&label=Discord&logo=discord&logoColor=%237289da&style=flat-square)](https://discord.gg/QscA86dXSR) [![codecov](https://codecov.io/gh/CodeBeamOrg/UltimateAuth/branch/dev/graph/badge.svg)](https://codecov.io/gh/CodeBeamOrg/UltimateAuth) +[![NuGet version](https://img.shields.io/nuget/v/CodeBeam.UltimateAuth.Core?color=512bd4&label=nuget%20version&logo=nuget&style=flat-square)](https://www.nuget.org/packages/CodeBeam.UltimateAuth) +[![NuGet downloads](https://img.shields.io/nuget/dt/CodeBeam.UltimateAuth.Core?color=512bd4&label=nuget%20downloads&logo=nuget&style=flat-square)](https://www.nuget.org/packages/CodeBeam.UltimateAuth) ## 📑 Table of Contents @@ -121,7 +123,7 @@ Traditional auth solutions struggle here — UltimateAuth embraces it. # 🚀 Quick Start > ⏱ Takes ~2 minutes to get started -### 1) Install packages (Will be available soon) +### 1) Install packages 1.1 Core Packages ```bash @@ -288,12 +290,12 @@ UltimateAuth turns Auth into a simple application service — not a separate sys ## 📘 Documentation -Two documentation experiences will be provided: +Two documentation experiences are provided: ### **1) Classic Documentation** -Guides, API reference, tutorials +Guides, API reference, tutorials - https://ultimateauth.com -### **2) Interactive Identity Sandbox** +### **2) Interactive Identity Sandbox** (Available Soon) Create accounts, simulate devices, test auth flows, and observe UltimateAuth in action. --- diff --git a/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/CodeBeam.UltimateAuth.Docs.Wasm.Client.csproj b/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/CodeBeam.UltimateAuth.Docs.Wasm.Client.csproj index a3aa3d95..bb9cbd6e 100644 --- a/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/CodeBeam.UltimateAuth.Docs.Wasm.Client.csproj +++ b/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/CodeBeam.UltimateAuth.Docs.Wasm.Client.csproj @@ -1,18 +1,20 @@  - - net10.0 - enable - enable - true - Default - true - + + net10.0 + enable + enable + true + Default + true + false + - - - - - + + + + + + diff --git a/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Layout/MainLayout.razor b/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Layout/MainLayout.razor index f0a2d1ce..40ae601b 100644 --- a/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Layout/MainLayout.razor +++ b/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Layout/MainLayout.razor @@ -8,6 +8,7 @@ +
@@ -17,16 +18,18 @@
- Docs (Preparing) - Donate + Docs + Samples + Donate
-
+
+
@@ -35,7 +38,10 @@ - Preparing + Home + Docs + Samples + Donate diff --git a/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Pages/DocsLandingPage.razor b/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Pages/DocsLandingPage.razor new file mode 100644 index 00000000..be6a91bc --- /dev/null +++ b/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Pages/DocsLandingPage.razor @@ -0,0 +1,30 @@ +@page "/docs" + + + + + UltimateAuth Docs + The modern way to understand authentication — unified, simple and powerful. + + + + This page is preparing. + + + But the documentation is currently available in markdown format and covers core concepts, architecture, flows and integration guides. + + + + Start exploring the docs to understand how UltimateAuth simplifies authentication across sessions, cookies and tokens. + + + + Read Documentation + + + + Full documentation site is coming soon. + + + + \ No newline at end of file diff --git a/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Pages/Home.razor b/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Pages/Home.razor index b6b11844..5be34301 100644 --- a/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Pages/Home.razor +++ b/docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/Pages/Home.razor @@ -92,12 +92,13 @@
+