-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotnet-core-azappservice.yml
More file actions
35 lines (28 loc) · 847 Bytes
/
dotnet-core-azappservice.yml
File metadata and controls
35 lines (28 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: .NET Core + Azure App Service
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Build com o utilitario dotnet
run: dotnet build ${{ secrets.CAMINHO_PROJETO }} --configuration Release
- name: Publish com o utilitario dotnet
run: dotnet publish ${{ secrets.CAMINHO_PROJETO }} -c Release -o app
- name: Login no Azure
uses: azure/login@v1.1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deployment no Azure App Service
uses: Azure/webapps-deploy@v2
with:
app-name: ${{ secrets.WEB_APP }}
package: './app'