Skip to content

Commit d9c8132

Browse files
committed
deploy coverage in separate job
1 parent 030c54a commit d9c8132

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -279,30 +279,39 @@ jobs:
279279
path: coverage
280280
if-no-files-found: error
281281

282-
- name: setup GitHub Pages
283-
if: matrix.name == 'macos'
284-
uses: actions/configure-pages@v5
285-
286-
- name: deploy coverage to GitHub Pages
287-
if: matrix.name == 'macos'
288-
uses: actions/deploy-pages@v3
289-
id: deployment
290-
with:
291-
artifact_name: coverage
292-
293282
- uses: actions/[email protected]
294283
if: always()
295284
with:
296285
name: cloudsync-${{ matrix.name }}${{ matrix.arch && format('-{0}', matrix.arch) || '' }}
297286
path: dist/cloudsync.*
298287
if-no-files-found: error
299288

289+
deploy_coverage:
290+
name: deploy coverage
291+
runs-on: ubuntu-latest
292+
needs: build
293+
294+
steps:
295+
296+
- name: download coverage artifact
297+
uses: actions/[email protected]
298+
with:
299+
name: coverage
300+
301+
- name: debug
302+
run: ls -lah
303+
304+
- name: setup GitHub Pages
305+
uses: actions/configure-pages@v5
306+
307+
- name: deploy coverage to GitHub Pages
308+
uses: actions/[email protected]
309+
300310
release:
301311
runs-on: ubuntu-latest
302312
name: release
303313
needs: build
304-
if: always()
305-
#github.ref == 'refs/heads/main'
314+
if: github.ref == 'refs/heads/main'
306315

307316
env:
308317
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)