ci: remove working-directory

This commit is contained in:
winston 2023-06-23 05:05:53 +02:00
parent 89d4497bd9
commit 55f36f165e
No known key found for this signature in database
GPG Key ID: 3786770EDBC2B481

View File

@ -9,10 +9,6 @@ on:
paths:
- 'examples/vite/**'
defaults:
run:
working-directory: examples/vite
jobs:
deploy:
runs-on: ubuntu-20.04
@ -28,13 +24,15 @@ jobs:
cache: 'npm'
cache-dependency-path: ./examples/vite/package-lock.json
- run: npm ci
- run: npm run build
- run: |
cd examples/vite
npm ci
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./examples/vite/dist
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'