-
Notifications
You must be signed in to change notification settings - Fork 8
70 lines (58 loc) · 1.83 KB
/
DeployWorkflow.yml
File metadata and controls
70 lines (58 loc) · 1.83 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: build and deploy LA
on:
workflow_dispatch:
inputs:
ResourceGroupName:
description: 'Name of the Resource Group'
required: true
LogicAppName:
description: 'Name of the Logic App'
required: true
# CONFIGURATION
# For help, go to https://github.com/Azure/Actions
#
# 1. Paste the RBAC json into the following secret in your repository:
# AZURE_RBAC_CREDENTIALS
#
# 2. Change these variables for your configuration:
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@master
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true
- name: Get publish Profile
id: fncapp
uses: azure/powershell@v1
with:
inlineScript: |
$profile = Get-AzWebAppPublishingProfile `
-ResourceGroupName ${{github.event.inputs.ResourceGroupName}} `
-Name ${{github.event.inputs.LogicAppName}}
$profile = $profile.Replace("`r", "").Replace("`n", "")
Write-Output "::set-output name=profile::$profile"
azPSVersion: latest
- name: Create project folder
run: |
mkdir output
cp 'host.json' 'output/'
#cp 'proxies.json' 'output/'
#cp 'connections.json' 'output/'
cp -r 'Stateful1' 'output/'
- name: Easy Zip Files
uses: vimtor/action-zip@v1
with:
dest: '${{ github.run_id }}.zip'
files: output/
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: ${{github.event.inputs.LogicAppName}}
package: '${{ github.run_id }}.zip'
publish-profile: ${{steps.fncapp.outputs.profile}}