Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Update Azure workflow to include build and deploy #9

Update Azure workflow to include build and deploy

Update Azure workflow to include build and deploy #9

Workflow file for this run

name: Azure Web App
on:
push:
branches:
- Dev
jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
dotnet-quality: preview
- name: Build with dotnet
run: dotnet publish SoarCraft.AwaiShop/SoarCraft.AwaiShop.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: "Awai"
slot-name: "Production"
package: ${{env.DOTNET_ROOT}}/myapp
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_C99EA4B4F77A41508E090AF728BF173A }}