Skip to content

Commit 013b459

Browse files
Create dumi.yml
1 parent 5981127 commit 013b459

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/dumi.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Github Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
14+
with:
15+
persist-credentials: false
16+
- name: Set Node Version
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '14.21.2'
20+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
21+
run: |
22+
yarn install
23+
yarn run dumi build
24+
- name: Deploy 🚀
25+
uses: JamesIves/github-pages-deploy-action@releases/v3
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
BRANCH: gh-pages # The branch the action should deploy to.
29+
FOLDER: dist # The folder the action should deploy.
30+
CLEAN: true

0 commit comments

Comments
 (0)