Skip to content

Validate certificate domains match configuration before reuse #11

Validate certificate domains match configuration before reuse

Validate certificate domains match configuration before reuse #11

Workflow file for this run

name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
inputs:
version:
description: 'Package version to publish (e.g., 1.2.0)'
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore src/PingmanTools.AspNet.EncryptWeMust.sln
- name: Build
run: dotnet build --no-restore src/PingmanTools.AspNet.EncryptWeMust.sln --configuration Release
publish:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore src/PingmanTools.AspNet.EncryptWeMust.sln
- name: Build
run: dotnet build --no-restore src/PingmanTools.AspNet.EncryptWeMust.sln --configuration Release
- name: Pack
env:
PACKAGE_VERSION: ${{ github.event.inputs.version }}
run: dotnet pack src/PingmanTools.AspNet.EncryptWeMust/PingmanTools.AspNet.EncryptWeMust.csproj --configuration Release /p:Version="$PACKAGE_VERSION" --no-build --output .
- name: Publish to NuGet
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
run: dotnet nuget push "*.nupkg" -k "$NUGET_AUTH_TOKEN" -s https://api.nuget.org/v3/index.json