fix: set base to an absolute path #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Generations of Components | |
run: pnpm run build:comp | |
- name: Generations of Less | |
run: pnpm run build:less | |
- name: Build docs | |
run: | | |
pnpm run build:demo | |
cp ./demo/dist/index.html ./demo/dist/404.html | |
- name: Deploy site | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
clean: true | |
branch: gh-pages | |
folder: ./demo/dist | |
token: ${{secrets.GIT_TOKEN}} |