Skip to content

Bump Nerdbank.GitVersioning from 3.7.112 to 3.7.115 #174

Bump Nerdbank.GitVersioning from 3.7.112 to 3.7.115

Bump Nerdbank.GitVersioning from 3.7.112 to 3.7.115 #174

Workflow file for this run

name: .NET Core
on:
push:
branches: [ master ]
pull_request:
env:
AZURE_WEBAPP_NAME: JsonToEnvironmentConverter
AZURE_WEBAPP_PACKAGE_PATH: '.'
DOTNET_VERSION: '8.x'
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: dotnet restore
run: dotnet restore --locked-mode
- name: dotnet build
run: dotnet build --configuration Release --no-restore
- name: dotnet publish
run: dotnet publish -c Release -o '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp' --no-restore --no-build
# Deploy to Azure Web apps (master only)
- name: 'Run Azure webapp deploy action using publish profile credentials'
uses: azure/webapps-deploy@v3
if: contains(github.ref, 'master')
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'