-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1014 Bytes
/
fnapp.yml
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
36
37
38
name: fnapp
on:
workflow_dispatch:
push:
branches: [master]
paths:
- lib/**
- fnapp/**
- fnapp.Tests/**
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: ./fnapp
- name: Build
run: dotnet build --no-restore -c Release
working-directory: ./fnapp
- name: Test
run: dotnet test --no-build --verbosity normal
working-directory: ./fnapp.Tests
- name: Publish
working-directory: ./fnapp
run: dotnet publish --no-build -c Release -o ./fnapp-build
- name: deploy fnapp
uses: Azure/[email protected]
with:
app-name: fnapp
package: ./fnapp/fnapp-build
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}