-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAHK.GradeManagement-deploy.template.yml
More file actions
34 lines (31 loc) · 1.26 KB
/
Copy pathAHK.GradeManagement-deploy.template.yml
File metadata and controls
34 lines (31 loc) · 1.26 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
name: Deploy TEMPLATE AHK.GradeManagement
on:
# 👇 Allows this workflow to be called from the deployment workflow, but the parameters must be provided.
workflow_call:
inputs:
artifactName:
description: The name of the artifact to download and deploy.
required: true
type: string
environmentName:
description: The name of the environment to deploy to.
required: true
type: string
jobs:
deploy:
runs-on: ubuntu-latest
# 👇 Allows using variables and secrets defined in the provided environment.
environment: ${{ inputs.environmentName }}
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifactName }}
path: .
# Deploy to Azure Web apps
- name: 'Run Azure webapp deploy action using publish profile credentials'
uses: azure/webapps-deploy@v3
with:
app-name: ${{ vars.AHK_GradeManagement_App_Name }} # Replace with your app name
publish-profile: ${{ secrets.AHK_GradeManagement_PUBLISH_PROFILE }} # Define secret variable in repository settings as per action documentation
package: './buildArtifact/Ahk.GradeManagement.Api'