Skip to content

Bump Azure.Identity from 1.11.0 to 1.11.4 in /NWebDav.Sample.AzureBlob #20

Bump Azure.Identity from 1.11.0 to 1.11.4 in /NWebDav.Sample.AzureBlob

Bump Azure.Identity from 1.11.0 to 1.11.4 in /NWebDav.Sample.AzureBlob #20

Workflow file for this run

name: CI
on:
push:
tags:
- v*
branches:
- main
pull_request:
branches:
- main
jobs:
build:
env:
BUILD_CONFIG: 'Release'
VERSION: '0.0.0'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Version Variable
if: ${{ github.ref_type == 'tag' }}
env:
TAG: ${{ github.ref_name }}
run: echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration $BUILD_CONFIG --no-restore /p:Version=$VERSION
- name: Create NuGet package
run: dotnet pack --configuration $BUILD_CONFIG --no-restore --no-build /p:PackageVersion=$VERSION
- name: Publish NuGet package
if: github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
run: nuget push **/*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{secrets.NUGET_API_KEY}}