Skip to content

Remove dependency on Build step #2

Remove dependency on Build step

Remove dependency on Build step #2

Workflow file for this run

---
name: Publish Nuget
on:
push:
tags:
- "*"
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
publish:
name: Publish Nuget
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.*
- name: Get version from tag
run: export VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
- name: publish on version change
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: src\Carter.SirenNegotiator.csproj
PACKAGE_NAME: Carter.SirenNegotiator
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
VERSION_STATIC: ${{ env.VERSION }}