File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
.idea/.idea.Rapidata.MongoDB.Migrations/.idea Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,12 @@ jobs:
3030 @semantic-release/exec
3131 env :
3232 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33-
34- deploy :
35- name : Deploy version
36- runs-on : ubuntu-latest
37- strategy :
38- matrix :
39- project-name : [ Rapidata.MongoDB.Migrations, Rapidata.MongoDB.Migrations.AspNetCore ]
40- needs : [ version ]
41- steps :
33+
4234 - name : Pack & Publish to NuGet
35+ if : ${{ steps.release.outputs.new_release_version }}
4336 run : |
44- dotnet pack src/${{ matrix.project-name }}/${{ matrix.project-path }}.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/${{ matrix.project-name }}
45- dotnet nuget push ${{ github.workspace }}/output/${{ matrix.project-name }}/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}
37+ dotnet pack src/Rapidata.MongoDB.Migrations/Rapidata.MongoDB.Migrations.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations
38+ dotnet nuget push ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}
39+
40+ dotnet pack src/Rapidata.MongoDB.Migrations.AspNetCore/Rapidata.MongoDB.Migrations.AspNetCore.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations.AspNetCore
41+ dotnet nuget push ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations.AspNetCore/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33echo " new_release_version=$1 " >> " $GITHUB_OUTPUT "
4- sed -i ' ' " s#<Version>.*#<Version>$1 </Version>#" " $2 "
4+ sed -i " s#<Version>.*#<Version>$1 </Version>#" " $2 "
You can’t perform that action at this time.
0 commit comments