Remove double build (#563)

* Remove double build

The docs are currently built twice, and as a result the docs also appear
on https://xtls.github.io/Xray-docs-next/

This doesn't seem necessary and the gh-pages branch of this repo can be
deleted. The real gh-pages branch is here:
https://github.com/XTLS/XTLS.github.io/tree/gh-pages-next

Deleting the gh-pages from this repo will also make clones faster

* accidentally removed install step
This commit is contained in:
mmmray
2024-08-20 10:40:22 -04:00
committed by GitHub
parent afde8ebc06
commit 36d51983c7
2 changed files with 3 additions and 17 deletions
+2 -14
View File
@@ -31,22 +31,10 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install and Build
env:
XRAY_DOCS_USE_VITE: "true"
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
pnpm install
yarn docs:build
- name: Deploy
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vuepress/dist
- name: Install
run: pnpm install
- name: Build for Main Repository
env:
XRAY_DOCS_MAIN_REPO: "true"
NODE_OPTIONS: "--max_old_space_size=4096 --openssl-legacy-provider"
run: |
yarn docs:build