Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full .net 6 upgrade #6

Merged
merged 1 commit into from
Nov 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/azure-webapps-dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@
name: Build and deploy ASP.Net Core app to an Azure Web App

env:
AZURE_WEBAPP_NAME: problemdetailsdemo2 # set this to the name of your Azure Web App
AZURE_WEBAPP_NAME: hellang-problemdetails-demo # set this to the name of your Azure Web App
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '6' # set this to the .NET Core version to use
DOTNET_VERSION: '6.0.x' # set this to the .NET Core version to use

on:
push:
branches: [ "master" ]
branches:
- master
pull_request:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -36,6 +40,8 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_CONFIGURATION: Release

steps:
- uses: actions/checkout@v3
Expand All @@ -54,10 +60,10 @@ jobs:
${{ runner.os }}-nuget-

- name: Build with dotnet
run: dotnet build --configuration Release
run: dotnet build -c ${{ env.BUILD_CONFIGURATION }}

- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
run: dotnet publish -c ${{ env.BUILD_CONFIGURATION }} -o ${{env.DOTNET_ROOT}}/myapp --no-build

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
Expand All @@ -66,6 +72,7 @@ jobs:
path: ${{env.DOTNET_ROOT}}/myapp

deploy:
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name)
permissions:
contents: none
runs-on: ubuntu-latest
Expand Down