mirror of
https://github.com/zenlm/zen-code-docs.git
synced 2026-07-27 03:11:35 +00:00
feat: update GHA workflow
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: Build and Deploy Qwen Code Docs Website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
run_install: false
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
working-directory: ./website
|
||||
|
||||
- name: Build website
|
||||
run: npm run build
|
||||
working-directory: ./website
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./website/out
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "website",
|
||||
"version": "1.0.0",
|
||||
"description": "多语言文档站点,为Qwen Code项目提供AI自动化翻译和高质量的本地化文档体验",
|
||||
"description": "Multilingual documentation site providing AI-powered automatic translation and high-quality localized documentation experience for the Qwen Code project",
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build"
|
||||
|
||||
Reference in New Issue
Block a user