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

Merge pull request #103 from itpartnersillinois/develop #29

Merge pull request #103 from itpartnersillinois/develop

Merge pull request #103 from itpartnersillinois/develop #29

Workflow file for this run

name: deploy_main
on:
push:
branches: [ main ]
workflow_dispatch:
env:
AZURE_WEBAPP_NAME: itp-app-contactsupport
AZURE_WEBAPP_PACKAGE_PATH: '.'
DOTNET_VERSION: '6.0'
PROJECT_NAME: ContactAppCore
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: |
cd ${{ env.PROJECT_NAME }}
dotnet build --configuration Release --no-restore
dotnet publish -c Release -o ../dotnet-webapp -r win-x64 --self-contained true /p:UseAppHost=true
- uses: azure/webapps-deploy@v2
name: Deploy
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/dotnet-webapp'
slot-name: 'deploy'