1717 build :
1818 runs-on : windows-latest
1919 outputs : # https://stackoverflow.com/questions/59175332/using-output-from-a-previous-job-in-a-new-one-in-a-github-action
20- Version : ${{ steps.gitversion.outputs.nuGetVersionV2 }}
20+ Version : ${{ steps.gitversion.outputs.MajorMinorPatch }}
2121 CommitsSinceVersionSource : ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
2222 steps :
2323 - uses : actions/checkout@v4
@@ -26,16 +26,15 @@ jobs:
2626
2727 # install and calculate the new version with GitVersion
2828 - name : Install GitVersion
29- uses : gittools/actions/gitversion/setup@v3.2 .1
29+ uses : gittools/actions/gitversion/setup@v4.0 .1
3030 with :
31- versionSpec : ' 5 .x'
31+ versionSpec : ' 6 .x'
3232 - name : Determine Version
33- uses : gittools/actions/gitversion/execute@v3.2 .1
33+ uses : gittools/actions/gitversion/execute@v4.0 .1
3434 id : gitversion # step id used as reference for output values
3535 - name : Display GitVersion outputs
3636 run : |
37- echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}"
38- echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}"
37+ echo "MajorMinorPatch: ${{ steps.gitversion.outputs.MajorMinorPatch }}"
3938 echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"
4039
4140 # install dependencies, build, and test
@@ -47,11 +46,11 @@ jobs:
4746
4847 # Publish web and web service projects
4948 - name : DotNet Publish Web Service
50- run : dotnet publish src/FeatureFlags.Service/FeatureFlags.Service.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} --output ${{ github.workspace }}/webservice --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
49+ run : dotnet publish src/FeatureFlags.Service/FeatureFlags.Service.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.MajorMinorPatch }} --output ${{ github.workspace }}/webservice --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
5150 - name : DotNet Publish Web Site
52- run : dotnet publish src/FeatureFlags.Web/FeatureFlags.Web.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} --output ${{ github.workspace }}/web --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
51+ run : dotnet publish src/FeatureFlags.Web/FeatureFlags.Web.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.MajorMinorPatch }} --output ${{ github.workspace }}/web --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
5352 - name : DotNet Publish Demo Web Site
54- run : dotnet publish src/FeatureFlagsDemo.Web/FeatureFlagsDemo.Web.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} --output ${{ github.workspace }}/webDemo --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
53+ run : dotnet publish src/FeatureFlagsDemo.Web/FeatureFlagsDemo.Web.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.MajorMinorPatch }} --output ${{ github.workspace }}/webDemo --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
5554
5655 # Publish functional tests
5756 - name : DotNet build functional tests
0 commit comments