-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (45 loc) · 1.44 KB
/
deploy_client-demo_service.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
51
52
53
54
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# Also, see: https://github.com/Azure/actions-workflow-samples
name: 'Deploy [demo] 121-service'
env:
AZURE_WEBAPP_NAME: '121-demo'
AZURE_WEBAPP_PACKAGE_PATH: services/121-service
defaults:
run:
working-directory: services/121-service
permissions:
actions: read
on:
workflow_call:
secrets:
AZURE_WEBAPP_PUBLISH_PROFILE:
required: true
workflow_dispatch:
jobs:
build-and-deploy:
name: Build and Deploy
environment: 'client-demo'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Service
id: build
uses: ./.github/actions/build-service
with:
downloadDatabaseCertificate: true
servicePath: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
- name: Deploy to Azure App Service
id: deploy_to_aas
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/artifact.zip'
type: zip
clean: true
- name: Finish
run: |
echo "Build version: ${{ steps.build.outputs.build_version }}" >> $GITHUB_STEP_SUMMARY
echo "Preview: <${{ steps.deploy_to_aas.outputs.webapp-url }}>" >> $GITHUB_STEP_SUMMARY