Skip to content

[F] modify time

[F] modify time #16

name: Deploy PR previews
on:
# pull_request:
# types:
# - opened
# - reopened
# - synchronize
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Build page
env:
pr: ${{ github.event.number }}
run: pnpm docs:build --base /pr-preview/pr-$pr/
- name: Deploy Preview
uses: rossjrw/[email protected]
with:
token: ${{ secrets.GH_PERSONAL_TOKEN }}
source-dir: ./content/.vitepress/dist
preview-branch: deploy
umbrella-dir: pr-preview
action: auto