Repository navigation
ImageWizard 3.12.0 #76
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: .NET Core | |
| on: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| permissions: | |
| id-token: write # enable GitHub OIDC token issuance for this job | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Get a short-lived NuGet API key | |
| - name: NuGet login (OIDC → temp API key) | |
| uses: NuGet/login@v1 | |
| id: login | |
| with: | |
| user: ${{ secrets.NUGET_USER }} | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Build with dotnet | |
| run: dotnet build --configuration Release "./src/ImageWizard.slnx" | |
| - name: Run unit tests | |
| run: dotnet test "./src/ImageWizard.sln" | |
| - name: Create the package | |
| run: dotnet pack --configuration Release "./src/ImageWizard.slnx" | |
| - name: Publish "ImageWizard.Utils" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.Utils/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.Core" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.Core/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.ImageSharp" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.ImageSharp/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.SkiaSharp" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.SkiaSharp/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.SvgNet" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.SvgNet/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.Analytics" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.Analytics/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.Azure" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.Azure/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.Client" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.Client/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.MongoDB" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.MongoDB/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.Piranha" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.Piranha/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.DocNET" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.DocNET/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.OpenGraph" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.OpenGraph/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.PuppeteerSharp" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.PuppeteerSharp/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |
| - name: Publish "ImageWizard.Generator" to nuget | |
| run: dotnet nuget push "./src/ImageWizard.Generator/bin/Release/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |