fix(build): Publish symbols package

This commit is contained in:
Valters Melnalksnis
2022-06-19 15:05:56 +03:00
parent bd07146a23
commit ee5b812b05
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -39,6 +39,12 @@ jobs:
with:
name: ${{ steps.publish.outputs.artifact-name }}
path: ${{ steps.publish.outputs.artifact }}
- name: Upload artifact
uses: actions/upload-artifact@v3.1.0
with:
name: ${{ steps.publish.outputs.symbols-name }}
path: ${{ steps.publish.outputs.symbols }}
create-release:
name: Create release
+4
View File
@@ -3,6 +3,7 @@ version=$(cat version)
publish_dir="./source/$1/bin/Release"
full_version="$version.$2"
package_name="$1.$version.nupkg"
symbols_name="$1.$version.snupkg"
dotnet pack \
./source/"$1"/"$1".csproj \
@@ -16,3 +17,6 @@ dotnet pack \
echo "::set-output name=artifact-name::$package_name"
echo "::set-output name=artifact::$publish_dir/$package_name"
echo "::set-output name=symbols-name::$symbols_name"
echo "::set-output name=symbols::$publish_dir/$symbols_name"