Skip to content

Commit 0f2e04e

Browse files
committedFeb 17, 2024·
Deploy demo
1 parent 3b34264 commit 0f2e04e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
 

‎.github/workflows/test.yml

+31
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,34 @@ jobs:
5050
run: pnpm install --ignore-scripts
5151
- name: Run unit tests
5252
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

0 commit comments

Comments
 (0)
Please sign in to comment.