Skip to content

Try again

Try again #5

Workflow file for this run

name: Publish .NET Console App

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

Cannot define both `uses` and `steps` at the same time for the following jobs: release
on:
push:
tags:
- 'v*' # This triggers the action on new version tags
jobs:
release:
uses: ./.github/workflows/build.yml
runs-on: ubuntu-latest
steps:
- name: Set version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Pack .NET tool
run: dotnet pack -c Release -o out -p:Version=${{ env.VERSION }}
- name: Publish to NuGet
run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }}