This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (75 loc) · 2.43 KB
/
deployment_azure-app-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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Deploy Node.js express app to Azure Web App - compact-donuts
on:
push:
branches:
- main
- 'Sprint-[0-9]*'
- 'patch-[0-9]*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
WRS_INSTANCE: docs/ucwa
WRS_ARTIFACT: webHelpUCWA2-all.zip
WRS_DOCKER_VERSION: 232.10275
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js version
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install dependencies with yarn
run: |
echo 'Get latest yarn'
yarn set version stable
echo 'Install dependencies'
yarn install --immutable
- name: Build jsdoc documentation
uses: andstor/jsdoc-action@v1
with:
source_dir: .
recurse: true
output_dir: ./public/docs/jsdoc
- name: Build Writerside docs using Docker
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.WRS_INSTANCE }}
artifact: ${{ env.WRS_ARTIFACT }}
docker-version: ${{ env.WRS_DOCKER_VERSION }}
- name: Upload Writerside documentation artifact
uses: actions/upload-artifact@v3
with:
name: wrs_docs
path: |
artifacts/${{ env.WRS_ARTIFACT }}
artifacts/report.json
retention-days: 7
- name: Test Writerside documentation
uses: JetBrains/writerside-checker-action@v1
with:
instance: ${{ env.WRS_INSTANCE }}
- name: Unzip Writerside artifact
uses: montudor/action-zip@v1
with:
args: unzip -qq artifacts/${{ env.WRS_ARTIFACT }} -d ./public/docs/code
- name: Remove unused files and folders
run: |
sudo rm -rf artifacts
git rm -rf docs
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'unboundmnl-area-2-backend'
slot-name: 'Production'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: .