mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Build Documents
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: 'true'
|
|
|
|
- name: Sync translations from crowdin
|
|
uses: crowdin/github-action@1.5.0
|
|
with:
|
|
upload_translations: true
|
|
download_translations: true
|
|
|
|
localization_branch_name: l10n_master
|
|
create_pull_request: false
|
|
|
|
base_path: ${{ github.workspace }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
|
|
|
|
- name: Deploy Documentation Site
|
|
uses: jenkey2011/vuepress-deploy@master
|
|
env:
|
|
ACCESS_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
|
|
TARGET_REPO: MCCTeam/MCCTeam.github.io
|
|
TARGET_BRANCH: master
|
|
BUILD_SCRIPT: yarn --cwd ./docs/ && yarn --cwd ./docs/ docs:build
|
|
BUILD_DIR: docs/.vuepress/dist
|
|
COMMIT_MESSAGE: Build from ${{ github.sha }}
|
|
CNAME: https://mccteam.github.io
|