@@ -27,19 +27,60 @@ jobs:
27
27
28
28
- uses : actions/setup-node@v4
29
29
30
- - name : Building docs
30
+ - name : Building JS docs
31
31
run : make js-doc
32
32
33
- - name : Setup Pages
34
- uses : actions/configure-pages@v4
33
+ - uses : actions/upload-artifact@master
34
+ with :
35
+ name : js
36
+ path : docs/js/assets/1.0.0/
37
+
38
+ phpdoc :
39
+ name : " 🐘 PHP-Doc"
40
+ if : github.repository == '3liz/lizmap-web-client' && github.ref == 'refs/heads/master'
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+
44
+ - name : Check out repository
45
+ uses : actions/checkout@v4
46
+
47
+ - name : Building PHP docs
48
+ run : make php-doc
49
+
50
+ - uses : actions/upload-artifact@master
51
+ with :
52
+ name : php
53
+ path : docs/php
54
+
55
+ deploy :
56
+ needs : [ jsdoc, phpdoc ]
57
+ name : " 📤 Deploy"
58
+ if : github.repository == '3liz/lizmap-web-client' && github.ref == 'refs/heads/master'
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+
62
+ - name : Check out repository
63
+ uses : actions/checkout@v4
64
+
65
+ - uses : actions/download-artifact@master
66
+ with :
67
+ name : php
68
+ path : docs/php/
69
+
70
+ - uses : actions/download-artifact@master
71
+ with :
72
+ name : js
73
+ path : docs/js/
35
74
36
75
- name : Upload artifact
37
76
uses : actions/upload-pages-artifact@v3
38
77
with :
39
- path : docs/js/assets/1.0.0/
78
+ path : docs/
79
+
80
+ - name : Setup Pages
81
+ uses : actions/configure-pages@v4
40
82
41
83
- name : Deploy to GitHub Pages
42
- if : github.repository == '3liz/lizmap-web-client' && github.ref == 'refs/heads/master'
43
84
id : deployment
44
85
uses : actions/deploy-pages@v4
45
86
64
105
# ./node_modules/.bin/gh-pages-multi deploy -s docs/js/assets/1.0.0/ -t $BRANCH_NAME -v
65
106
66
107
- name : Summary
67
- if : github.repository == '3liz/lizmap-web-client' && github.ref == 'refs/heads/master'
68
- run : echo "### Published ! :rocket:" >> $GITHUB_STEP_SUMMARY
108
+ run : |
109
+ echo "
110
+ ### Published ! :rocket:
111
+
112
+ [Visit the doc](https://docs.3liz.org/lizmap-web-client/)
113
+ " >> $GITHUB_STEP_SUMMARY
0 commit comments