-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 2.01 KB
/
Copy pathBuild-Site.yml
File metadata and controls
66 lines (55 loc) · 2.01 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
name: Build-Site
on:
workflow_call:
inputs:
Settings:
type: string
description: The complete settings object.
required: true
permissions:
contents: read # to checkout the repo
jobs:
Build-Site:
name: Build-Site
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
fetch-depth: 0
- name: Checkout Process-PSModule
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: ${{ job.workflow_repository }}
ref: ${{ job.workflow_sha }}
path: _wf
persist-credentials: false
- name: Install-PSModule
uses: ./_wf/.github/actions/Install-PSModule
- name: Download docs artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: docs
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/outputs/docs
- name: Install Zensical
uses: ./_wf/.github/actions/Install-Zensical
- name: Structure site
uses: ./_wf/.github/actions/Structure-Site
with:
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
Name: ${{ fromJson(inputs.Settings).Name }}
- name: Build documentation site with Zensical
uses: ./_wf/.github/actions/Build-ZensicalSite
with:
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
- name: Inject shared site scripts
uses: ./_wf/.github/actions/Inject-SiteScripts
with:
SitePath: ${{ fromJson(inputs.Settings).WorkingDirectory }}/_site
WorkflowPath: _wf
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
name: github-pages
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/_site
retention-days: 1