Skip to content

Change for a nuget template #1

Change for a nuget template

Change for a nuget template #1

name: Publish to Nuget
on:
release:
types:
- published
env:

Check failure on line 6 in .github/workflows/Publish to Nuget.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Publish to Nuget.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
Version: ${{ github.event.release.tag_name }}
PackageFile: {{cookiecutter.name}}.${{ github.event.release.tag_name }}.nupkg
jobs:
create_nuget:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Pack
run: dotnet pack --configuration Release -p:PackageVersion=${{ env.Version }} --output .
- name: Publish NuGet package
run: dotnet nuget push ${{ env.PackageFile }} --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate