File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Auto Deploy Site
2+
3+ on :
4+ push :
5+ branches : [dev]
6+ paths :
7+ - ' examples/sites/**'
8+ - ' !examples/sites/**/*.spec.ts'
9+
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ # Allow one concurrent deployment
18+ concurrency :
19+ group : pages
20+ cancel-in-progress : true
21+
22+ jobs :
23+ # Build job
24+ build :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v3
29+ - name : Setup pnpm
30+ uses : pnpm/action-setup@v3
31+ with :
32+ version : 8
33+ - name : Install deps
34+ run : pnpm -F @opentiny/vue-docs i --no-frozen-lockfile
35+ - name : Build site
36+ run : pnpm -F @opentiny/vue-docs build
37+ - name : Setup Pages
38+ uses : actions/configure-pages@v2
39+ - name : Build with Jekyll
40+ uses : actions/jekyll-build-pages@v1
41+ with :
42+ source : ./examples/sites/dist
43+ destination : ./_site
44+ - name : Upload artifact
45+ uses : actions/upload-pages-artifact@v1
46+
47+ # Deployment job
48+ deploy :
49+ environment :
50+ name : github-pages
51+ url : ${{ steps.deployment.outputs.page_url }}
52+ runs-on : ubuntu-latest
53+ needs : build
54+ steps :
55+ - name : Deploy to GitHub Pages
56+ id : deployment
57+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments