Skip to content

Commit

Permalink
Update azure-webapps-dotnet-core.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vyrotek authored Jul 21, 2023
1 parent 1f716d8 commit a5e9667
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/azure-webapps-dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,38 @@ permissions:
contents: read

jobs:

yay:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Set up dependency caching for faster builds
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build with dotnet
run: dotnet build --configuration Release

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

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp

build:
runs-on: ubuntu-latest

Expand Down

0 comments on commit a5e9667

Please sign in to comment.