File tree Expand file tree Collapse file tree 1 file changed +38
-34
lines changed
Expand file tree Collapse file tree 1 file changed +38
-34
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ concurrency:
1818
1919jobs :
2020
21+ # build
22+ # ############################################################################
23+
2124 build :
2225 strategy :
2326 fail-fast : true
4447 name : build_${{ matrix.runner }}
4548 retention-days : 1
4649 path : coatjava.tar.gz
47- - name : publish jacoco report
48- run : validation/jacoco-aggregate.sh
49- - uses : actions/upload-artifact@v3
50- with :
51- name : jacoco
52- retention-days : 1
53- path : publish/
54-
55- collect_pages :
56- runs-on : ubuntu-latest
57- needs :
58- - build
59- steps :
60- - uses : actions/download-artifact@v3
61- with :
62- name : jacoco
63- path : publish/
64- - uses : actions/upload-pages-artifact@v2
65- with :
66- path : publish/
67- retention-days : 7
6850
69- deploy_pages :
70- needs : collect_pages
71- permissions :
72- pages : write
73- id-token : write
74- environment :
75- name : github-pages
76- url : ${{ steps.deployment.outputs.page_url }}
77- runs-on : ubuntu-latest
78- steps :
79- - name : deployment
80- id : deployment
81- uses : actions/deploy-pages@v2
51+ # tests
52+ # ############################################################################
8253
8354 test_coatjava :
8455 needs : [ build ]
@@ -154,3 +125,36 @@ jobs:
154125 steps :
155126 - name : pass
156127 run : exit 0
128+
129+ # deploy web pages
130+ # ############################################################################
131+
132+ collect_pages :
133+ runs-on : ubuntu-latest
134+ needs :
135+ - build
136+ steps :
137+ - uses : actions/checkout@v3
138+ - uses : actions/download-artifact@v3
139+ with :
140+ name : build_${{ needs.build.outputs.default_runner }}
141+ - name : publish jacoco report
142+ run : validation/jacoco-aggregate.sh
143+ - uses : actions/upload-pages-artifact@v2
144+ with :
145+ path : publish/
146+ retention-days : 7
147+
148+ deploy_pages :
149+ needs : collect_pages
150+ permissions :
151+ pages : write
152+ id-token : write
153+ environment :
154+ name : github-pages
155+ url : ${{ steps.deployment.outputs.page_url }}
156+ runs-on : ubuntu-latest
157+ steps :
158+ - name : deployment
159+ id : deployment
160+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments