fix(build): Publish symbols package
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user