Skip to content

Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 (#95) #91

Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 (#95)

Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 (#95) #91

name: Nightly MyGet Package Deploy
on:
push:
branches:
- develop
jobs:
publish:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
steps:
- name: Setup .Net
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
- uses: actions/checkout@v3
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.10.2
with:
versionSpec: '5.x'
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/execute@v0.10.2
- run: |
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.MajorMinorPatch }}"
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.CommitsSinceVersionSourcePadded }}"
- 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 }}"
- 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 }}
- uses: actions/upload-artifact@v3
with:
name: Nuget-packages-${{ steps.gitversion.outputs.NuGetVersionV2 }}
path: nuget-packages
- name: Push package to Myget
run: dotnet nuget push 'nuget-packages/*.nupkg' --api-key ${{ secrets.MYGET_API_KEY }} --source https://www.myget.org/F/paypal-sdk-checkout/api/v3/index.json