File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 77
88jobs :
99 version :
10- strategy :
11- matrix :
12- project-name : [Rapidata.MongoDB.Migrations, Rapidata.MongoDB.Migrations.AspNetCore]
1310 name : Create New version
1411 runs-on : ubuntu-latest
1512 steps :
1613 - name : 🔻 Checkout
1714 uses : actions/checkout@v4
18-
15+
1916 - name : Setup dotnet
2017 uses : actions/setup-dotnet@v4
2118 with :
2219 dotnet-version : 9.0.x
23-
20+
2421 - name : 🏷️ Semantic Release
2522 id : release
2623 uses : cycjimmy/semantic-release-action@v4
3330 @semantic-release/exec
3431 env :
3532 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36- CURRENT_PROJECT : ${{ matrix.project-name }}
37-
33+
34+ deploy :
35+ strategy :
36+ matrix :
37+ project-name : [ Rapidata.MongoDB.Migrations, Rapidata.MongoDB.Migrations.AspNetCore ]
38+ requires :
39+ - version
40+ steps :
3841 - name : Pack & Publish to NuGet
3942 if : ${{ steps.release.outputs.new_release_version }}
4043 run : |
Original file line number Diff line number Diff line change 1818 [
1919 "@semantic-release/exec",
2020 {
21- "prepareCmd": "./updateVersion.sh '${nextRelease.version}'"
21+ "prepareCmd": "./updateVersion.sh '${nextRelease.version}' 'src/Rapidata.MongoDB.Migrations/Rapidata.MongoDB.Migrations.csproj' && ./updateVersion.sh '${nextRelease.version}' 'src/Rapidata.MongoDB.Migrations.AspNetCore/Rapidata.MongoDB.Migrations.AspNetCore.csproj' "
2222 }
2323 ],
2424 [
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>#" " src/ $CURRENT_PROJECT / $CURRENT_PROJECT .csproj "
4+ sed -i " s#<Version>.*#<Version>$1 </Version>#" " $2 "
You can’t perform that action at this time.
0 commit comments