Skip to content

Commit

Permalink
fix: demo deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
Gumball12 committed Mar 9, 2024
1 parent e0ae652 commit a7d6c87
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/publish-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,21 @@ jobs:
with:
version: 8

- run: cd demo

- uses: actions/cache@v3
id: pnpm-cache
with:
path: node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
path: demo/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('demo/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install
run: cd demo && pnpm install

- run: pnpm run build
- run: cd demo && pnpm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./demo/dist

0 comments on commit a7d6c87

Please sign in to comment.