-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📝 docs: initial docs #86
base: main
Are you sure you want to change the base?
Conversation
9d407b6
to
791808f
Compare
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
package_json_file: "docs/package.json" | ||
version: "latest" | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
cache: "pnpm" | ||
cache-dependency-path: "docs/pnpm-lock.yaml" | ||
|
||
- name: Install dependencies | ||
working-directory: ./docs | ||
run: pnpm i --frozen-lockfile | ||
|
||
- name: Build VitePress site | ||
working-directory: ./docs | ||
run: pnpm build | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
# if: github.ref == 'refs/heads/main' # Uncomment this before merge this PR | ||
with: | ||
personal_token: ${{ secrets.PERSONAL_TOKEN }} | ||
publish_dir: docs/.vitepress/dist | ||
external_repository: SigureMo/docs | ||
publish_branch: yutto | ||
force_orphan: true | ||
commit_message: ":rocket: deploy: " | ||
user_name: "github-actions[bot]" | ||
user_email: "github-actions[bot]@users.noreply.github.com" |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
CodSpeed Performance ReportMerging #86 will not alter performanceComparing Summary
|
name: Lint and Format (Docs) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
package_json_file: "docs/package.json" | ||
version: "latest" | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "22" | ||
cache: "pnpm" | ||
cache-dependency-path: "docs/pnpm-lock.yaml" | ||
|
||
- name: Install dependencies | ||
working-directory: ./docs | ||
run: pnpm i --frozen-lockfile | ||
|
||
- name: Format check | ||
working-directory: ./docs | ||
run: pnpm fmt:check |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
动机
添加一个全新的静态文档~
emmmmm,还是懒得写,还是先放着吧……
preview: https://yutto.nyakku.moe/
解决方案
类型