19 lines
493 B
Bash
19 lines
493 B
Bash
#!/bin/bash
|
|
version=$(cat version)
|
|
publish_dir="./source/$1/bin/Release"
|
|
full_version="$version.$2"
|
|
package_name="$1.$version.nupkg"
|
|
|
|
dotnet pack \
|
|
./source/"$1"/"$1".csproj \
|
|
--configuration Release \
|
|
-p:AssemblyVersion="$full_version" \
|
|
-p:AssemblyFileVersion="$full_version" \
|
|
-p:PackageVersion="$version" \
|
|
-p:InformationalVersion="$version""$3" \
|
|
/nologo ||
|
|
exit
|
|
|
|
echo "::set-output name=artifact-name::$package_name"
|
|
echo "::set-output name=artifact::$publish_dir/$package_name"
|