Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 676 Bytes

ValidateNugetPublish.md

File metadata and controls

20 lines (15 loc) · 676 Bytes

Validate NuGet Publish

Validates the NuGet publishing process without actually pushing the package to NuGet or creating a GitHub release. Useful to check if the project is still publishable, and didn't get an unexpected breaking change. Example validate-nuget-publish.yml_:

name: Validate NuGet Publish

on:
  pull_request:
    push:
      branches:
        - dev

jobs:
  validate-nuget-publish:
    name: Validate NuGet Publish
    uses: Lombiq/GitHub-Actions/.github/workflows/validate-nuget-publish.yml@dev

The workflow otherwise takes the same configuration options as publish-nuget, but doesn't require the API_KEY secret.