mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
[SKIP_BUILD]Update and rename docs.yml to vuepress-deploy.yml
This commit is contained in:
parent
17e1f6b805
commit
61b5d96c2b
2 changed files with 27 additions and 46 deletions
46
.github/workflows/docs.yml
vendored
46
.github/workflows/docs.yml
vendored
|
|
@ -1,46 +0,0 @@
|
|||
name: docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**/__tests__/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
NODE_ENV: 'production'
|
||||
NODE_VERSION: '16'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build documentation site
|
||||
run: pnpm docs:release
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: crazy-max/ghaction-github-pages@v2.2.0
|
||||
with:
|
||||
repo: MCCTeam/MCCTeam.github.io
|
||||
target_branch: main
|
||||
build_dir: docs/.vuepress/dist
|
||||
env:
|
||||
GH_PAT: ${{ secrets.GH_PAGES_TOKEN }}
|
||||
27
.github/workflows/vuepress-deploy.yml
vendored
Normal file
27
.github/workflows/vuepress-deploy.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**/__tests__/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: vuepress-deploy
|
||||
uses: jenkey2011/vuepress-deploy@master
|
||||
env:
|
||||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TARGET_REPO: MCCTeam/MCCTeam.github.io
|
||||
TARGET_BRANCH: master
|
||||
BUILD_SCRIPT: yarn --cwd ./docs/ && yarn --cwd ./docs/ docs:dev
|
||||
BUILD_DIR: docs/.vuepress/dist
|
||||
CNAME: https://mccteam.github.io
|
||||
Loading…
Add table
Add a link
Reference in a new issue