Skip to content

Commit e5d1fb9

Browse files
committed
ci: speedup
1 parent d7024a7 commit e5d1fb9

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

.github/workflows/maven.yml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ jobs:
4747
name: build_${{ matrix.runner }}
4848
retention-days: 1
4949
path: coatjava.tar.gz
50-
- name: publish jacoco report
51-
if: ${{ matrix.runner == 'ubuntu-latest' && ( github.head_ref == 'coverage' || github.ref_name == 'coverage' ) }}
50+
- name: collect jacoco report
51+
if: ${{ matrix.runner == 'ubuntu-latest' }}
5252
run: validation/jacoco-aggregate.sh
53-
- uses: actions/upload-artifact@v3
54-
if: ${{ matrix.runner == 'ubuntu-latest' && ( github.head_ref == 'coverage' || github.ref_name == 'coverage' ) }}
53+
- name: publish jacoco report
54+
if: ${{ matrix.runner == 'ubuntu-latest' }}
55+
uses: actions/upload-pages-artifact@v2
5556
with:
56-
name: jacoco
57-
retention-days: 1
5857
path: publish/
58+
retention-days: 1
5959

6060
# tests
6161
#############################################################################
@@ -138,24 +138,9 @@ jobs:
138138
# deploy web pages
139139
#############################################################################
140140

141-
collect_pages:
142-
if: ${{ github.head_ref == 'coverage' || github.ref_name == 'coverage' }}
143-
runs-on: ubuntu-latest
144-
needs:
145-
- build
146-
steps:
147-
- uses: actions/download-artifact@v3
148-
with:
149-
name: jacoco
150-
path: publish/
151-
- uses: actions/upload-pages-artifact@v2
152-
with:
153-
path: publish/
154-
retention-days: 7
155-
156-
deploy_pages:
141+
deploy_web_pages:
157142
if: ${{ github.head_ref == 'coverage' || github.ref_name == 'coverage' }}
158-
needs: collect_pages
143+
needs: build
159144
permissions:
160145
pages: write
161146
id-token: write

0 commit comments

Comments
 (0)