-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (38 loc) · 1.17 KB
/
master_meetup_functions(dev).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
39
40
41
42
43
name: Functions-master to slot dev
on:
push:
branches:
- master
paths:
- 'MeetUpFunctions/**'
# CONFIGURATION
# For help, go to https://github.com/Azure/Actions
#
# 1. Set up the following secrets in your repository:
# AZURE_FUNCTIONAPP_PUBLISH_PROFILE
#
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@master
- name: Setup DotNet Environment
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
- name: 'Resolve Project Dependencies Using Dotnet'
shell: pwsh
run: |
pushd './MeetUpFunctions'
dotnet nuget add source --username rbrands --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/rbrands/index.json"
dotnet build --configuration Release --output ./output
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'meetupplanner'
slot-name: 'dev'
package: 'MeetUpFunctions/output'
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}