Skip to content

Commit

Permalink
Add or update the App Service deployment workflow configuration from …
Browse files Browse the repository at this point in the history
…Azure Portal.
  • Loading branch information
Seaneeee committed Jun 30, 2020
1 parent ec85b9e commit a66d5bd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/master_warehousetrans2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP.Net Core app to Azure Web App - warehousetrans2

on:
push:
branches:
- master

jobs:
build-and-deploy:
runs-on: windows-latest

steps:
- uses: actions/checkout@master

- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.102'

- name: Build with dotnet
run: dotnet build --configuration Release

- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp

- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v1
with:
app-name: 'warehousetrans2'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_71ad385796ae466aad45c160bd18d92a }}
package: ${{env.DOTNET_ROOT}}/myapp

0 comments on commit a66d5bd

Please sign in to comment.