Skip to content

adjust read api key in action #1

adjust read api key in action

adjust read api key in action #1

Workflow file for this run

name: Publish .NET Tool to NuGet
on:
push:
tags:
- 'v*' # Trigger workflow on tags like v1.0.0
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- name: Restore dependencies
run: dotnet restore
- name: Build and pack
run: dotnet pack --configuration Release
- name: Publish to NuGet
env:

Check failure on line 28 in .github/workflows/releaseNuget.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/releaseNuget.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
NUGET_API_KEY: ${{ secrets.NUGET_ORG_API_KEY }}
run: dotnet nuget push ./nupkg/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json