Skip to content

Instantly share code, notes, and snippets.

@mczachurski
Created November 16, 2019 12:14
Show Gist options
  • Save mczachurski/5c81c25d78bcd4e2d46adfd9eadf2bea to your computer and use it in GitHub Desktop.
Save mczachurski/5c81c25d78bcd4e2d46adfd9eadf2bea to your computer and use it in GitHub Desktop.
name: Deploy to Azure
on:
push:
branches:
- master
env:
AZURE_WEBAPP_NAME: application-api
AZURE_WEBAPP_PACKAGE_PATH: './src/Application.Api/bin/Release/netcoreapp3.0'
NODE_VERSION: '10.x'
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.100
- name: Build
working-directory: ./src/Application.Api
run: dotnet build --configuration Release
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v1
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment