Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RaviAkshintala authored Sep 23, 2024
1 parent 1043da0 commit c6b9282
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
on:
push: {}
pull_request: {}
workflow_dispatch:
inputs:
publish-packages:
Expand All @@ -34,6 +29,15 @@ jobs:
with:
dotnet-version: 8.0.x

- name: Clear NuGet Cache
run: dotnet nuget locals all --clear

- name: Restore Packages
run: |
for i in {1..3}; do
dotnet restore && break || sleep 10;
done
- name: Build
run: dotnet build -c Release

Expand Down

0 comments on commit c6b9282

Please sign in to comment.