diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 662bb01..fb7273f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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') }} @@ -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'