Skip to content

Update {{cookiecutter.name}}.sln #4

Update {{cookiecutter.name}}.sln

Update {{cookiecutter.name}}.sln #4

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