Skip to content

Commit

Permalink
Updates jellisy
Browse files Browse the repository at this point in the history
  • Loading branch information
RainOrigami committed Sep 8, 2023
1 parent 15200de commit 281558a
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 6.x
dotnet-version: 6

- name: NuGet Restore
run: dotnet restore

- name: Build and Publish project
run: dotnet publish BattleBitAPIRunner/BattleBitAPIRunner.csproj -c Release -o ./publish
Expand Down Expand Up @@ -69,12 +72,17 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 6.x # Updated to use .NET 6.0
dotnet-version: 6

- name: Build project and check for errors on non-main branch commits
run: dotnet build --configuration Release --no-restore
run: |
dotnet build --configuration Release --no-restore
if [ $? -ne 0 ]; then
echo "Build failed"
exit 1
fi

0 comments on commit 281558a

Please sign in to comment.