Skip to content

astorDev/versy

Repository files navigation

Versy

GitHub Actions for CalVer & NuGet.

Using It

  1. Set repository secret NUGET_API_KEY
  2. In your repo create .github/workflows/nuget.yml with
on:
  push:
    paths:
      - 'my/awesome/lib/**'
      - '.github/workflows/nuget.yml'

jobs:
  publish:
    name: Pack & Publish nuget
    runs-on: ubuntu-latest
    steps:
      - uses: astorDev/versy/calver/nuget@main
        with:
          project: my/awesome/lib/My.Awesome.Lib
          nuget-api-key: ${{ secrets.NUGET_API_KEY }}

And you'll get nugets published every time you push with version like this:

drawing