feat: remove docs test and push assets

This commit is contained in:
DIYgod
2024-03-09 18:48:10 +08:00
parent d83c85a349
commit 93fc0608f7
3 changed files with 6 additions and 27 deletions
+6
View File
@@ -35,6 +35,12 @@ jobs:
run: pnpm i
- name: Build assets
run: npm run build
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git status
git diff-index --quiet HEAD || (git commit -m "chore: auto build" -a --no-verify && git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:master)
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
-26
View File
@@ -104,32 +104,6 @@ jobs:
run: pnpm run vitest puppeteer
env: ${{ fromJSON(matrix.chromium.environment) }}
docs:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
node-version: [ 18, 20, 21 ]
defaults:
run:
working-directory: website
name: Build docs on Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache-dependency-path: website/pnpm-lock.yaml
- run: pnpm i
- name: Build docs
run: pnpm run build
working-directory: website
all:
runs-on: ubuntu-latest
timeout-minutes: 5