add command to build & deploy
MODIFY
.github/workflows/github_doc_deploy.yml
.github/workflows/github_doc_deploy.yml
@@ -28,11 +28,15 @@ jobs:
ref: docs
# Runs a single command using the runners shell
- - name: Run a one-line script
- run: echo Hello, world!
+ - name: Build
+ run: |
+ cd docs
+ npm ci
+ npm run build
# Runs a set of commands using the runners shell
- - name: Run a multi-line script
- run: |
- echo Add other actions to build,
- echo test, and deploy your project.
+ - name: Deploy
+ uses: JamesIves/github-pages-deploy-action@4.1.4
+ with:
+ branch: gh-pages # The branch the action should deploy to.
+ folder: build

add command to build & deploy