-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 938 Bytes
/
wf-samples-deploy.yaml
File metadata and controls
38 lines (33 loc) · 938 Bytes
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: wf-samples-deploy
run-name: Deploy sample app
on:
workflow_call:
inputs:
appName:
description: "App name"
type: string
default: "sample-app"
jobs:
deploy:
name: Deploy ${{ inputs.appName }} app
runs-on: ubuntu-latest
environment: development
env:
APP_NAME: ${{ inputs.appName }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: ${{ env.APP_NAME }}
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy ${{ env.APP_NAME }} to Azure
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.APP_NAME }}
slot-name: "production"
package: .