-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.14 KB
/
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
44
45
46
47
48
49
50
name: Build and Deploy to Dev
env:
AZURE_FUNCTIONAPP_NAME: 'drhelius-demo-func'
POM_XML_DIRECTORY: '.'
JAVA_VERSION: '11'
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy-to-dev:
runs-on: windows-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: Log into Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Setup Java Sdk ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v1
with:
java-version: ${{ env.JAVA_VERSION }}
- name: 'Build Using Mvn'
shell: pwsh
run: |
pushd './${{ env.POM_XML_DIRECTORY }}'
mvn clean package
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: '${{ env.POM_XML_DIRECTORY }}'
respect-pom-xml: true
slot-name: 'dev'