Skip to content

fix(outDir 重复)

fix(outDir 重复) #38

Workflow file for this run

name: Deploy Rspress site to Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build with Rspress
run: |
bun run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: doc_build
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# ------------------- Sync to Gitee -------------------
# - name: Sync to Gitee
# uses: wearerequired/git-mirror-action@master
# env:
# SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
# with:
# source-repo: git@github.com:${{ github.repository }}.git
# destination-repo: git@gitee.com:Moonofweisheng/uni-mini-router.git
# - name: Build & Deploy to Gitee Pages
# uses: yanglbme/gitee-pages-action@main
# with:
# gitee-username: Moonofweisheng
# gitee-password: ${{ secrets.GITEE_PASSWORD }}
# gitee-repo: Moonofweisheng/uni-mini-router
# branch: gh-pages