File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : ci
22on :
3- - push
3+ - push :
4+ branches :
5+ - main
46
57jobs :
68 test :
2931 run : pnpm coverage:codecov
3032 - name : Upload coverage reports
3133 uses : codecov/codecov-action@v5
34+
35+ build-demo :
36+ needs : test
37+ if : github.ref == 'refs/heads/master'
38+ steps :
39+ - name : Fetch Repository
40+ uses : actions/checkout@v4
41+ - name : Install pnpm
42+ uses : pnpm/action-setup@v4
43+ with :
44+ version : 9
45+ - name : Install Node.js
46+ uses : actions/setup-node@v4
47+ with :
48+ node-version : 22
49+ - name : Install dependencies and build app
50+ run : pnpm -C docs-src install && pnpm -C docs-src add github:AlexanderMac/o2diff && pnpm -C docs-src run build:prod
51+ - name : Upload demo build as artifact
52+ id : deployment
53+ uses : actions/upload-pages-artifact@v3
54+ with :
55+ path : docs-src/dist/browser/
56+
57+ deploy-demo :
58+ needs : build
59+ if : github.ref == 'refs/heads/master'
60+ permissions :
61+ pages : write # to deploy to Pages
62+ id-token : write # to verify the deployment originates from an appropriate source
63+ environment :
64+ name : github-pages
65+ url : ${{ steps.deployment.outputs.page_url }}
66+ runs-on : ubuntu-latest
67+ steps :
68+ - name : Deploy to GitHub Pages
69+ id : deployment
70+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments