Skip to content

Commit 3dd6cdb

Browse files
authored
Disable NuGet uploading of releases for now (#2450)
* Add --skip-duplicate to NuGet upload This is necessary to avoid problems when we release a new version of Dafny but don't change the version of the runtime. * Temporarily disable NuGet uploads during release Unfortunately, the NuGet packages generated by this script have overly strict .NET version dependencies, and we don't yet know how to fix this. See #2423
1 parent 6afd888 commit 3dd6cdb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/publish-release-reusable.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,7 @@ jobs:
124124

125125
- name: Upload package to NuGet
126126
if: ${{ inputs.release_nuget }}
127-
run: dotnet nuget push "dafny/Binaries/Dafny*.nupkg" -k ${{ secrets.nuget_api_key }} -s https://api.nuget.org/v3/index.json
127+
# Need --skip-duplicate for cases where we release a new Dafny
128+
# version but the runtime hasn't changed and is still the old
129+
# version.
130+
run: dotnet nuget push --skip-duplicate "dafny/Binaries/Dafny*.nupkg" -k ${{ secrets.nuget_api_key }} -s https://api.nuget.org/v3/index.json

.github/workflows/publish-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
sha: ${{ github.sha }}
3434
tag_name: ${{ github.ref }}
3535
draft: true
36-
release_nuget: true
36+
# Currently automated NuGet uploads have overly strict .NET
37+
# version dependencies. Skipping until that's fixed. See here:
38+
# https://github.com/dafny-lang/dafny/issues/2423
39+
release_nuget: false
3740
# We can probably automate pulling this out of RELEASE_NOTES.md in the future
3841
release_notes: ""
3942
secrets:

0 commit comments

Comments
 (0)