迁移准备

This commit is contained in:
Meow
2025-12-21 22:14:50 -05:00
committed by yuhan6665
parent 3acefe8200
commit bb47a72bc8
32 changed files with 0 additions and 0 deletions
-19
View File
@@ -1,19 +0,0 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
ignore:
- dependency-name: "vue" #https://github.com/XTLS/Xray-docs-next/pull/465
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
-48
View File
@@ -1,48 +0,0 @@
name: Deploy Vuepress
on:
push:
branches:
- main
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: "18"
- name: Install yarn and pnpm
run: |
npm install yarn@1.22.19 -g
npm install -g pnpm
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v5
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install
run: pnpm install
- name: Build for Main Repository
env:
NODE_OPTIONS: "--max_old_space_size=4096 --openssl-legacy-provider"
run: |
yarn docs:build
- name: Deploy to main Repository
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.ACTION_PERSONAL_TOKEN }}
publish_dir: docs/.vuepress/dist
external_repository: XTLS/XTLS.github.io
publish_branch: gh-pages-next
-34
View File
@@ -1,34 +0,0 @@
name: Prettier Action
on:
pull_request:
branches: [main]
permissions:
contents: write
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
- name: Checkout
if: github.event.pull_request.head.repo.full_name != 'XTLS/Xray-docs-next'
uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Prettify code
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
uses: creyD/prettier_action@v4.6
with:
prettier_options: --write **/*.{js,ts,md,vue}
- name: Prettify code dry run
if: github.event.pull_request.head.repo.full_name != 'XTLS/Xray-docs-next'
uses: creyD/prettier_action@v4.6
with:
prettier_options: --write **/*.{js,ts,md,vue}
only_changed: true
dry: true