action: build for main repository

This commit is contained in:
hmol233
2021-09-15 18:28:06 +08:00
parent d98294791b
commit d698965203
2 changed files with 25 additions and 2 deletions
+14
View File
@@ -25,6 +25,8 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- name: Install and Build
env:
XRAY_DOCS_USE_VITE: "true"
run: |
yarn install
yarn docs:build
@@ -33,3 +35,15 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vuepress/dist
- name: Build for Main Repository
env:
XRAY_DOCS_MAIN_REPO: "true"
run: |
yarn docs:build
- name: Deploy to main Repository
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vuepress/dist
external_repository: XTLS/XTLS.github.io
publish_branch: gh-pages-next