-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDeployReferenceDocumentation.yaml
More file actions
87 lines (73 loc) · 2.51 KB
/
DeployReferenceDocumentation.yaml
File metadata and controls
87 lines (73 loc) · 2.51 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
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
name: ' Deploy Reference Documentation'
on:
workflow_dispatch:
permissions:
actions: read
contents: read
id-token: write
pages: write
defaults:
run:
shell: powershell
env:
ALGoOrgSettings: ${{ vars.ALGoOrgSettings }}
ALGoRepoSettings: ${{ vars.ALGoRepoSettings }}
jobs:
DeployALDoc:
runs-on: [ windows-latest ]
name: Deploy Reference Documentation
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.3
with:
shell: powershell
- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v8.3
with:
shell: powershell
- name: Determine ArtifactUrl
id: determineArtifactUrl
uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.3
with:
shell: powershell
- name: Determine Deployment Environments
id: DetermineDeploymentEnvironments
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.3
env:
GITHUB_TOKEN: ${{ github.token }}
with:
shell: powershell
getEnvironments: 'github-pages'
type: 'Publish'
- name: Setup Pages
if: steps.DetermineDeploymentEnvironments.outputs.deployALDocArtifact == 1
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
- name: Build Reference Documentation
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.3
with:
shell: powershell
artifacts: 'latest'
artifactUrl: ${{ env.artifact }}
- name: Upload pages artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: ".aldoc/_site/"
- name: Deploy to GitHub Pages
if: steps.DetermineDeploymentEnvironments.outputs.deployALDocArtifact == 1
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.3
env:
GITHUB_TOKEN: ${{ github.token }}
with:
shell: powershell
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
currentJobContext: ${{ toJson(job) }}