Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build PR Preview

on:
pull_request:
types: [opened, reopened, synchronize, closed]

permissions:
contents: write
pull-requests: write

concurrency: ci-${{ github.ref }}

jobs:
build-deploy-and-preview:
name: Build, Deploy to GitHub Pages and Deploy PR Preview
runs-on: ubuntu-latest
steps:
- name: Build, Deploy to GitHub Pages and Deploy PR Preview
uses: chvmvd/[email protected]
with:
type: vite
custom-url: log.javazero.top
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@

本项目采用 GitHub Actions 自动化部署到 GitHub Pages,每次推送到主分支时自动构建和部署。

同时,每个 Pull Request 都会自动构建并生成预览页面,方便审核。

如需 fork 此项目进行自定义开发:

1. Fork 本仓库到你的 GitHub 账户
Expand Down
Loading