Validate certificate domains match configuration before reuse #11
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 | |
| 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 |