File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ concurrency:
1414jobs :
1515 test :
1616 runs-on : ubuntu-latest
17- environment :
18- name : github-pages
19- url : ${{ steps.deployment.outputs.page_url }}
2017 steps :
2118 - uses : actions/checkout@v4
2219 - uses : oven-sh/setup-bun@v1
@@ -26,11 +23,29 @@ jobs:
2623 run : bun run build
2724 - name : Run vitest
2825 run : bun run coverage
26+ - name : Upload coverage artifact
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : coverage-report
30+ path : coverage
31+
32+ deploy :
33+ runs-on : ubuntu-latest
34+ needs : test
35+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
36+ environment :
37+ name : github-pages
38+ url : ${{ steps.deployment.outputs.page_url }}
39+ steps :
40+ - name : Download coverage artifact
41+ uses : actions/download-artifact@v4
42+ with :
43+ name : coverage-report
44+ path : coverage
2945 - uses : actions/configure-pages@v4
3046 - uses : actions/upload-pages-artifact@v3
3147 with :
3248 path : coverage
3349 - name : Deploy to GitHub Pages
34- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
3550 id : deployment
3651 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments