Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amphasis committed Aug 31, 2024
1 parent fee7ce3 commit c88949b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,17 @@ jobs:
steps:

# Checkout the repo
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

# Setup .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Set up dependency caching for faster builds
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -68,7 +69,7 @@ jobs:
- name: Build and publish
run: |
dotnet build --configuration Release
dotnet publish -c Release -o ${{ env.AZURE_WEBAPP_PROJECT_PATH }}
dotnet publish -c Release --property:PublishDir=${{ env.AZURE_WEBAPP_PROJECT_PATH }} -maxcpucount:1
# Deploy to Azure Web apps
- name: 'Run Azure webapp deploy action using publish profile credentials'
Expand Down

0 comments on commit c88949b

Please sign in to comment.