16
16
INSTANCE : Writerside/litecommands
17
17
ARTIFACT : webHelpLITECOMMANDS2-all.zip
18
18
# Docker image version
19
- DOCKER_VERSION : 232.10275
19
+ DOCKER_VERSION : 241.15989
20
+ ALGOLIA_ARTIFACT : ' algolia-indexes-LITECOMMANDS.zip'
21
+ ALGOLIA_APP_NAME : ' AA5N7A7U42'
22
+ ALGOLIA_INDEX_NAME : ' litecommands'
23
+ ALGOLIA_KEY : ' ${{ secrets.ALGOLIA_KEY }}'
24
+ CONFIG_JSON_PRODUCT : ' LITECOMMANDS'
25
+ CONFIG_JSON_VERSION : ' 2.0'
20
26
21
27
jobs :
22
28
build :
25
31
steps :
26
32
- name : Checkout repository
27
33
uses : actions/checkout@v3
34
+ with :
35
+ fetch-depth : 0
28
36
29
37
- name : Build Writerside docs using Docker
30
38
uses : JetBrains/writerside-github-action@v4
34
42
docker-version : ${{ env.DOCKER_VERSION }}
35
43
36
44
- name : Upload artifact
37
- uses : actions/upload-artifact@v3
45
+ uses : actions/upload-artifact@v4
38
46
with :
39
47
name : docs
40
48
path : |
@@ -51,21 +59,43 @@ jobs:
51
59
52
60
steps :
53
61
- name : Download artifact
54
- uses : actions/download-artifact@v3
62
+ uses : actions/download-artifact@v4
55
63
with :
56
64
name : docs
57
65
58
66
- name : Unzip artifact
59
67
run : unzip -O UTF-8 -qq ${{ env.ARTIFACT }} -d dir
60
68
61
69
- name : Setup Pages
62
- uses : actions/configure-pages@v2
70
+ uses : actions/configure-pages@v4
63
71
64
- - name : Upload artifact
65
- uses : actions/upload-pages-artifact@v1
72
+ - name : Package and upload Pages artifact
73
+ uses : actions/upload-pages-artifact@v3
66
74
with :
67
75
path : dir
68
76
69
77
- name : Deploy to GitHub Pages
70
78
id : deployment
71
- uses : actions/deploy-pages@v1
79
+ uses : actions/deploy-pages@v4
80
+
81
+ publish-indexes :
82
+ needs : [ build, deploy ]
83
+ runs-on : ubuntu-latest
84
+ container :
85
+ image : registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3
86
+ steps :
87
+ - name : Download artifact
88
+ uses : actions/download-artifact@v4
89
+ with :
90
+ name : docs
91
+ - name : Unzip artifact
92
+ run : |
93
+ unzip -O UTF-8 -qq '${{ env.ALGOLIA_ARTIFACT }}' -d algolia-indexes
94
+ env algolia-key='${{env.ALGOLIA_KEY}}' java -jar /opt/builder/help-publication-agent.jar \
95
+ update-index \
96
+ --application-name '${{env.ALGOLIA_APP_NAME}}' \
97
+ --index-name '${{env.ALGOLIA_INDEX_NAME}}' \
98
+ --product '${{env.CONFIG_JSON_PRODUCT}}' \
99
+ --version '${{env.CONFIG_JSON_VERSION}}' \
100
+ --index-directory algolia-indexes/ \
101
+ 2>&1 | tee algolia-update-index-log.txt
0 commit comments