-
Notifications
You must be signed in to change notification settings - Fork 36
35 lines (31 loc) · 1.2 KB
/
feedback_service.yml
File metadata and controls
35 lines (31 loc) · 1.2 KB
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: Build and Deploy feedback service
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore src/PullRequestQuantifier.Feedback.Service/PullRequestQuantifier.Feedback.Service.csproj
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- name: Build
run: dotnet build src/PullRequestQuantifier.Feedback.Service/PullRequestQuantifier.Feedback.Service.csproj --configuration Release --no-restore
- name: dotnet publish
run: dotnet publish src/PullRequestQuantifier.Feedback.Service/PullRequestQuantifier.Feedback.Service.csproj -c Release -o "${{env.DOTNET_ROOT}}/pullrequestquantifierfeedback"
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'pullrequestquantifierfeedback'
slot-name: 'production'
publish-profile: ${{ secrets.FEEDBACK_SERVICE_AZUREAPPSECRET }}
package: ${{env.DOTNET_ROOT}}/pullrequestquantifierfeedback