generated from microsoft/AL-Go-PTE
-
Notifications
You must be signed in to change notification settings - Fork 5
71 lines (59 loc) · 1.85 KB
/
DeployReferenceDocumentation.yaml
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
name: ' Deploy Reference Documentation'
on:
workflow_dispatch:
permissions:
contents: write
actions: read
pages: write
id-token: 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@v3
- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/[email protected]
with:
shell: powershell
eventId: "DO0097"
- name: Read settings
uses: microsoft/AL-Go-Actions/[email protected]
with:
shell: powershell
- name: Determine Deployment Environments
id: DetermineDeploymentEnvironments
uses: microsoft/AL-Go-Actions/[email protected]
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@v3
- name: Build Reference Documentation
uses: microsoft/AL-Go-Actions/[email protected]
with:
shell: powershell
artifacts: 'latest'
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: ".aldoc/_site/"
- name: Deploy to GitHub Pages
if: steps.DetermineDeploymentEnvironments.outputs.deployALDocArtifact == 1
id: deployment
uses: actions/deploy-pages@v2