mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Update webapi.yml
This commit is contained in:
parent
f5a96f965a
commit
9bf5975fe6
1 changed files with 5 additions and 5 deletions
10
.github/workflows/webapi.yml
vendored
10
.github/workflows/webapi.yml
vendored
|
|
@ -18,9 +18,9 @@ jobs:
|
||||||
- uses: actions/checkout@v3.3.0
|
- uses: actions/checkout@v3.3.0
|
||||||
|
|
||||||
- name: Set up .NET Core
|
- name: Set up .NET Core
|
||||||
uses: actions/setup-dotnet@v2.1.1
|
uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '8.0.x'
|
||||||
|
|
||||||
- name: Build with dotnet
|
- name: Build with dotnet
|
||||||
run: dotnet build ./src/ServerManager.WebApplication/ServerManager.WebApplication.csproj --configuration Release
|
run: dotnet build ./src/ServerManager.WebApplication/ServerManager.WebApplication.csproj --configuration Release
|
||||||
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
run: dotnet publish ./src/ServerManager.WebApplication/ServerManager.WebApplication.csproj -c Release -o ${{env.DOTNET_ROOT}}/webapi
|
run: dotnet publish ./src/ServerManager.WebApplication/ServerManager.WebApplication.csproj -c Release -o ${{env.DOTNET_ROOT}}/webapi
|
||||||
|
|
||||||
- name: Upload artifact for deployment job
|
- name: Upload artifact for deployment job
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: .net-app
|
name: .net-app
|
||||||
path: ${{env.DOTNET_ROOT}}/webapi
|
path: ${{env.DOTNET_ROOT}}/webapi
|
||||||
|
|
@ -44,13 +44,13 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifact from build job
|
- name: Download artifact from build job
|
||||||
uses: actions/download-artifact@v3.0.2
|
uses: actions/download-artifact@v4.2.1
|
||||||
with:
|
with:
|
||||||
name: .net-app
|
name: .net-app
|
||||||
|
|
||||||
- name: Deploy to Azure Web App
|
- name: Deploy to Azure Web App
|
||||||
id: deploy-to-webapp
|
id: deploy-to-webapp
|
||||||
uses: azure/webapps-deploy@v2.2.6
|
uses: azure/webapps-deploy@v3.0.1
|
||||||
with:
|
with:
|
||||||
app-name: 'servermanagers'
|
app-name: 'servermanagers'
|
||||||
slot-name: 'Production'
|
slot-name: 'Production'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue