Skip to content

Commit

Permalink
Use correct gitversion output (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam authored Dec 18, 2024
1 parent 6466055 commit ebd8b61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ jobs:
uses: gittools/actions/gitversion/[email protected]
- run: |
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.MajorMinorPatch }}"
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.CommitsSinceVersionSourcePadded }}"
echo "FullSemVer: ${{ steps.gitversion.outputs.FullSemVer }}"
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"
- name: Restore with .Net
run: dotnet restore --nologo
- name: Build with .Net
run: dotnet build --configuration Release --no-restore --nologo "-p:Version=${{ steps.gitversion.outputs.NuGetVersionV2 }}"
run: dotnet build --configuration Release --no-restore --nologo "-p:Version=${{ steps.gitversion.outputs.FullSemVer }}"
- name: Pack with .Net
run: dotnet pack src/PayPal.Sdk.Checkout/PayPal.Sdk.Checkout.csproj --nologo --no-build --configuration Release --output nuget-packages -p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }}
run: dotnet pack src/PayPal.Sdk.Checkout/PayPal.Sdk.Checkout.csproj --nologo --no-build --configuration Release --output nuget-packages -p:PackageVersion=${{ steps.gitversion.outputs.FullSemVer }}
- uses: actions/upload-artifact@v4
with:
name: Nuget-packages-${{ steps.gitversion.outputs.NuGetVersionV2 }}
name: Nuget-packages-${{ steps.gitversion.outputs.FullSemVer }}
path: nuget-packages
- name: Push package to Myget
if: ${{ vars.USE_MYGET == 'true' }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ jobs:
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]
- run: |
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}"
echo "NuGetPreReleaseTagV2 (not used): ${{ steps.gitversion.outputs.CommitsSinceVersionSourcePadded }}"
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.MajorMinorPatch }}"
echo "FullSemVer: ${{ steps.gitversion.outputs.FullSemVer }}"
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"
- name: Restore with .Net
run: dotnet restore --nologo
- name: Build with .Net
run: dotnet build --configuration Release --no-restore --nologo "-p:Version=${{ steps.gitversion.outputs.MajorMinorPatch }}"
run: dotnet build --configuration Release --no-restore --nologo "-p:Version=${{ steps.gitversion.outputs.FullSemVer }}"
- name: Pack with .Net
run: dotnet pack src/PayPal.Sdk.Checkout/PayPal.Sdk.Checkout.csproj --nologo --no-build --configuration Release --output nuget-packages -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }}
run: dotnet pack src/PayPal.Sdk.Checkout/PayPal.Sdk.Checkout.csproj --nologo --no-build --configuration Release --output nuget-packages -p:PackageVersion=${{ steps.gitversion.outputs.FullSemVer }}
- uses: actions/upload-artifact@v4
with:
name: Nuget-packages-${{ steps.gitversion.outputs.nuGetVersionV2 }}
name: Nuget-packages-${{ steps.gitversion.outputs.FullSemVer }}
path: nuget-packages
- name: Configure Github Nuget Feed
run: dotnet nuget add source --name github https://nuget.pkg.github.com/aviationexam/index.json
Expand Down

0 comments on commit ebd8b61

Please sign in to comment.