Skip to content

Bump microsoft.openapi.kiota from 1.19.1 to 1.20.0 in the microsoft g… #187

Bump microsoft.openapi.kiota from 1.19.1 to 1.20.0 in the microsoft g…

Bump microsoft.openapi.kiota from 1.19.1 to 1.20.0 in the microsoft g… #187

name: Nightly MyGet Package Deploy
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
steps:
- name: Setup .Net
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- uses: actions/checkout@v4
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Tool restore
run: dotnet tool restore
- name: Restore
run: dotnet restore --nologo
- uses: ./.github/actions/version
id: version
- name: Build with .Net
run: dotnet build --configuration Release --no-restore --nologo "-p:Version=${{ steps.version.outputs.enhancedVersion }}"
- name: Pack with .Net
run: |
dotnet pack --nologo --no-build --configuration Release --output nuget-packages -p:PackageVersion=${{ steps.version.outputs.enhancedVersion }} src/Apple.AppStoreConnect/Apple.AppStoreConnect.csproj
- uses: actions/upload-artifact@v4
with:
name: Nuget-packages-${{ steps.version.outputs.enhancedVersion }}
path: nuget-packages
- name: Push package to Myget
if: ${{ vars.USE_MYGET == 'true' }}
run: dotnet nuget push 'nuget-packages/*.nupkg' --api-key ${{ secrets.MYGET_API_KEY }} --source https://www.myget.org/F/apple-app-store-connect/api/v3/index.json
- name: Push package to Feedz
if: ${{ vars.USE_FEEDZ == 'true' }}
run: dotnet nuget push 'nuget-packages/*.nupkg' --api-key ${{ secrets.FEEDZ_API_KEY }} --source https://f.feedz.io/aviationexam/apple-app-store-connect-api/nuget/index.json