File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 50
50
run : pnpm install --ignore-scripts
51
51
- name : Run unit tests
52
52
run : pnpm bnt
53
+ deploy :
54
+ name : Demo Deploy
55
+ runs-on : ubuntu-latest
56
+ if : github.ref == 'refs/heads/main'
57
+ needs :
58
+ - full
59
+ permissions :
60
+ contents : write
61
+ steps :
62
+ - name : Checkout the repository
63
+ uses : actions/checkout@v4
64
+ with :
65
+ persist-credentials : false
66
+ - name : Install pnpm
67
+ uses : pnpm/action-setup@v3
68
+ with :
69
+ version : 8
70
+ - name : Install Node.js
71
+ uses : actions/setup-node@v4
72
+ with :
73
+ node-version : 20
74
+ cache : pnpm
75
+ - name : Install dependencies
76
+ run : pnpm install --ignore-scripts
77
+ - name : Build
78
+ run : pnpm build
79
+ - name : Deploy
80
+ uses : JamesIves/github-pages-deploy-action@v4
81
+ with :
82
+ folder : test/demo/dist
83
+ branch : gh-pages
You can’t perform that action at this time.
0 commit comments