mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-02-01 07:21:40 +03:00
a5842db0e2
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 9.4.0 to 10.0.0. - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md) - [Commits](https://github.com/mermaid-js/mermaid/compare/v9.4.0...v10.0.0) --- updated-dependencies: - dependency-name: mermaid dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Deploy Vuepress
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "16"
|
|
- name: Get yarn cache directory path
|
|
id: yarn-cache-dir-path
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
- uses: actions/cache@v2
|
|
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 and Build
|
|
env:
|
|
XRAY_DOCS_USE_VITE: "true"
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
|
run: |
|
|
yarn install
|
|
yarn docs:build
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: docs/.vuepress/dist
|
|
- name: Build for Main Repository
|
|
env:
|
|
XRAY_DOCS_MAIN_REPO: "true"
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
|
run: |
|
|
yarn docs:build
|
|
- name: Deploy to main Repository
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
personal_token: ${{ secrets.ACTION_PERSONAL_TOKEN }}
|
|
publish_dir: docs/.vuepress/dist
|
|
external_repository: XTLS/XTLS.github.io
|
|
publish_branch: gh-pages-next
|