File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 77
88env :
99 SOLUTION_FILE : ValueMapper/ValueMapper.sln
10- PROJECT_PATH : " ValueMapper/ValueMapperCore/ValueMapper.csproj"
10+
11+ PROJECT_PATH : ValueMapper/ValueMapperCore/ValueMapper.csproj
12+
1113 PACKAGE_OUTPUT_DIRECTORY : ${{ github.workspace }}/output
14+
1215 NUGET_SOURCE_URL : " https://api.nuget.org/v3/index.json"
1316
1417jobs :
1518 deploy :
1619 name : " Deploy"
20+
1721 runs-on : " windows-latest"
22+
1823 steps :
1924 - name : " Checkout"
25+
2026 uses : actions/checkout@v3
2127
2228 - name : " Install dotnet"
29+
2330 uses : actions/setup-dotnet@v3
31+
2432 with :
2533 dotnet-version : " 8.0.x"
2634
2735 - name : " Restore packages"
36+
2837 run : dotnet restore ${{ env.SOLUTION_FILE }}
2938
3039 - name : " Build project"
40+
3141 run : dotnet build ${{ env.SOLUTION_FILE }} --no-restore --configuration Release
3242
3343 - name : " Get Version"
44+
3445 id : version
46+
3547 uses : battila7/get-version-action@v2
3648
49+ - name : " Create output directory"
50+
51+ run : mkdir -p ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
52+
53+ shell : bash
54+
3755 - name : " Pack project"
56+
3857 run : dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
3958
59+ - name : " List package directory contents"
60+
61+ run : dir ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
62+
63+ shell : cmd
64+
4065 - name : " Push package"
66+
4167 run : dotnet nuget push "${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s ${{ env.NUGET_SOURCE_URL }}
You can’t perform that action at this time.
0 commit comments