File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 3
3
release :
4
4
types : [published]
5
5
6
- env :
7
- VERSION : ${{github.ref_name}}
8
-
9
6
jobs :
10
7
publish-to-nuget :
11
- name : Build, test and publish to NuGet.org
12
- runs-on : ubuntu-22.04
13
- steps :
14
- - run : echo "ASSEMBLY_VERSION=$(echo $VERSION | sed -e 's/-.*//')" >> $GITHUB_ENV
15
- - uses : actions/checkout@v2
16
- - run : dotnet build -c Release /p:Version=$VERSION /p:AssemblyVersion=$ASSEMBLY_VERSION
17
- - run : dotnet test -c Release
18
- - run : dotnet pack -c Release -o nugetPackage -p:PackageVersion=$VERSION
19
- - run : dotnet nuget push nugetPackage/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
8
+ name : Publish release to NuGet
9
+ uses : markwhitaker/shared-workflows/.github/workflows/dotnet-publish-release-to-nuget.yml@main
You can’t perform that action at this time.
0 commit comments