chore(deps): bump Microsoft.Kiota.Serialization.Json #1134
Workflow file for this run
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
name: Release solution | |
on: | |
workflow_dispatch: | |
push: | |
# paths: ['src/**', '.github/workflows/**', 'msgraph-cli-core.sln'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
MS_NUGET_URL: https://nuget.pkg.github.com/microsoft/index.json | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET Core SDK 8 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
# Look to see if there is a cache hit for the corresponding requirements file | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Test | |
run: dotnet test --no-restore | |
- id: publish | |
name: Publish | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
run: dotnet publish --no-restore --verbosity normal -c Release | |
- id: pack | |
name: Pack | |
if: ${{ steps.publish.outcome == 'success' }} | |
run: dotnet pack --no-restore --no-build --verbosity normal -c Release | |
- name: Upload Nuget Package | |
if: ${{ steps.pack.outcome == 'success' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: drop | |
path: | | |
./src/Microsoft.Graph.Cli.Core/bin/Release/*.nupkg |