Skip to content

Commit

Permalink
Update .NET version in build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ricksu978 committed Jan 20, 2024
1 parent b76bd1f commit 72f8099
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 107 deletions.

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/build-and-deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
- .github/workflows/build-and-deploy-backend.yml

env:
DOTNET_VERSION: '7.0.x'
DOTNET_VERSION: '8.0.x'
DOTNET_APP_SOURCE_PATH: './src/'
DOTNET_APP_BACKEND_SOLUTION: 'Wsa.Gaas.Werewolf.BackEnd.sln'
DOTNET_APP_BACKEND_PROJECT_PATH: './src/BackEnd/src/InterfaceAdapter/WebApi'
DOTNET_APP_BACKEND_PROJECT_PATH: './src/BackEnd/src/Presentation/WebApi'

jobs:
build:
Expand All @@ -21,13 +21,13 @@ jobs:
# Checkout the repo
- name: git checkout
uses: actions/checkout@v3

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

# Run dotnet build and test
- name: Backend - dotnet restore, build and test
working-directory: ${{ env.DOTNET_APP_SOURCE_PATH }}
Expand Down Expand Up @@ -70,11 +70,11 @@ jobs:
# Download All Artifacts
- name: Download All Artifacts
uses: actions/download-artifact@v3

# Display file structures
- name: Display structure of downloaded files
run: ls -R

# Deploy to Azure App Service
- name: Deploy to Backend Azure App Service
uses: azure/webapps-deploy@v2
Expand All @@ -98,11 +98,11 @@ jobs:
with:
name: backend-app
path: ./backend-app

# Display file structures
- name: Display structure of downloaded files
run: ls -R

# Deploy to Azure App Service
- name: Deploy to Azure App Service
uses: azure/webapps-deploy@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-and-deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- .github/workflows/build-and-deploy-frontend.yml

env:
DOTNET_VERSION: '7.0.x'
DOTNET_VERSION: '8.0.x'
DOTNET_APP_SOURCE_PATH: './src/'
DOTNET_APP_FRONTEND_SOLUTION: 'Wsa.Gaas.Werewolf.DiscordBot.sln'
DOTNET_APP_FRONTEND_PROJECT_PATH: './src/DiscordBot/src/InterfaceAdapter/DiscordBot'
Expand All @@ -21,13 +21,13 @@ jobs:
# Checkout the repo
- name: git checkout
uses: actions/checkout@v3

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

# Run dotnet build and test
- name: Frontend - dotnet restore, build and test
working-directory: ${{ env.DOTNET_APP_SOURCE_PATH }}
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
# Display file structures
- name: Display structure of downloaded files
run: ls -R

# Deploy to Azure App Service
- name: Deploy to Frontend Azure App Service
uses: azure/webapps-deploy@v2
Expand Down

0 comments on commit 72f8099

Please sign in to comment.