Conversation
9d407b6 to
791808f
Compare
Comment on lines
+12
to
+53
| 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
| submodules: true | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v2 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow
CodSpeed Performance ReportMerging #86 will not alter performanceComparing Summary
|
Comment on lines
+79
to
+104
| 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
| 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
| run: pnpm build | ||
|
|
||
| - name: Deploy | ||
| uses: peaceiris/actions-gh-pages@v3 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
动机
添加一个「全新」的静态文档~(3 年前可以说全新,现在不新了都)
emmmmm,还是懒得写,还是先放着吧……preview: https://yutto.nyakku.moe/
类型