forked from laniatech/Checkout-NET-SDK
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct gitversion output (#195)
- Loading branch information
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|