Skip to content

Commit 63c93e9

Browse files
committed
fix: code coverage pipeline
Signed-off-by: jbrinkman <[email protected]>
1 parent 852e9b0 commit 63c93e9

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/code-coverage.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
jobs:
1010
code-coverage:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
1216

1317
steps:
1418
- uses: actions/checkout@v4
@@ -47,10 +51,17 @@ jobs:
4751
name: code-coverage-report
4852
path: ./CodeCoverage
4953

50-
- name: Publish coverage report to GitHub Pages
51-
uses: JamesIves/github-pages-deploy-action@v4
54+
- name: Setup Pages
55+
uses: actions/configure-pages@v4
56+
if: github.ref == 'refs/heads/main'
57+
58+
- name: Upload to GitHub Pages
59+
uses: actions/upload-pages-artifact@v3
5260
if: github.ref == 'refs/heads/main'
5361
with:
54-
folder: ./CodeCoverage
55-
branch: gh-pages
56-
target-folder: coverage
62+
path: ./CodeCoverage
63+
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v4
67+
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)