Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@N-Usha @joelbyford
29 lines (23 sloc) 906 Bytes
on: [push,pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# checkout the repo
- uses: actions/checkout@master
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.108 # Replace with specific dotnet core version
# dotnet build and publish
- name: Build with dotnet
run: dotnet build --configuration Release
- name: dotnet publish
run: |
dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
- name: 'Run Azure webapp deploy action using publish profile credentials'
uses: azure/webapps-deploy@v1
with:
app-name: mydotnetcoreapp # Replace with your app name
publish-profile: ${{ secrets.azureWebAppPublishProfile }} # Define secret variable in repository settings as per action documentation
package: ${{env.DOTNET_ROOT}}/myapp
You can’t perform that action at this time.