Wait for NuGet readiness and assert package contents (#8)

This commit is contained in:
Patrick Stevens
2024-06-17 21:46:09 +01:00
committed by GitHub
parent ad1bef7a06
commit e71418a46d
3 changed files with 55 additions and 1 deletions

10
.github/workflows/assert-contents.sh vendored Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
mkdir from-nuget && cp from-nuget.nupkg from-nuget/zip.zip && cd from-nuget && unzip zip.zip && cd - || exit 1
mkdir from-local && cp packed/*.nupkg from-local/zip.zip && cd from-local && unzip zip.zip && cd - || exit 1
find from-local -type f -exec sha256sum {} \; | sort > from-local.txt
find from-nuget -type f -and -not -name '.signature.p7s' -exec sha256sum {} \; | sort > from-nuget.txt
diff from-local.txt from-nuget.txt