Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
# Derive the package version from the pushed tag (e.g. v1.1.4 -> 1.1.4).
# -p:Version is a global MSBuild property; PackageVersion, FileVersion and
# AssemblyVersion all derive from it.
run: dotnet build --no-restore -c Release -p:Version=${GITHUB_REF_NAME#v}
- name: Test
run: dotnet test --no-build --verbosity normal -c Release
- name: NuGet login (OIDC → temp API key) # Get a short-lived NuGet API key
Expand All @@ -27,4 +30,4 @@ jobs:
with:
user: ${{ secrets.NUGET_USER }}
- name: Push
run: dotnet nuget push "./build/*.symbols.nupkg" --skip-duplicate --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push "./build/*.symbols.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
12 changes: 0 additions & 12 deletions src/Directory.Build.targets

This file was deleted.

Loading