1
1
name : Build docs
2
2
3
3
on :
4
+ # Specify to run a workflow manually from the Actions tab on GitHub.
4
5
workflow_dispatch :
5
6
7
+ # Gives the workflow permissions to clone the repo and create a page deployment
6
8
permissions :
7
9
id-token : write
8
10
pages : write
20
22
jobs :
21
23
build-job :
22
24
runs-on : ubuntu-latest
25
+ container : registry.jetbrains.team/p/writerside/builder/writerside-builder:2.1.1481-p3872-df
26
+ outputs :
27
+ artifact : ${{ steps.generate-artifact.outputs.artifact }}
23
28
steps :
24
29
- name : Checkout repository
25
30
uses : actions/checkout@v3
26
- - name : Build Writerside docs using Docker
27
- uses : ./.github/writerside-build
28
- - name : Upload artifact
31
+ - name : Prepare for build
32
+ run : |
33
+ apt-get update
34
+ apt-get install -y zip
35
+ mkdir -p artifacts
36
+ - name : Build docs and include sitemap.xml
37
+ run : |
38
+ export DISPLAY=:99
39
+ Xvfb :99 &
40
+ /opt/builder/bin/idea.sh helpbuilderinspect -source-dir . -product $PRODUCT --runner github -output-dir artifacts/ || true
41
+ test -e artifacts/$ARTIFACT && echo $ARTIFACT exists
42
+ cp docs/StardustDocs/sitemap.xml artifacts/sitemap.xml
43
+ cd artifacts
44
+ zip -r $ARTIFACT sitemap.xml
45
+ working-directory : ${{ github.workspace }}
46
+ - name : Upload modified documentation artifact
29
47
uses : actions/upload-artifact@v3
30
48
with :
31
- name : artifact
49
+ name : help
32
50
path : artifacts/${{ env.ARTIFACT }}
33
51
retention-days : 7
34
52
- name : Upload algolia-indexes
@@ -42,13 +60,14 @@ jobs:
42
60
environment :
43
61
name : github-pages
44
62
url : ${{ steps.deployment.outputs.page_url }}
63
+ # Requires the build-job results
45
64
needs : build-job
46
65
runs-on : ubuntu-latest
47
66
steps :
48
67
- name : Download artifact
49
68
uses : actions/download-artifact@v3
50
69
with :
51
- name : artifact
70
+ name : help
52
71
- name : Unzip artifact
53
72
uses : montudor/action-zip@v1
54
73
with :
0 commit comments