feat: update GHA workflow

This commit is contained in:
pomelo-nwu
2025-08-22 15:05:17 +08:00
parent d230bcdac3
commit 9c0842fa13
2 changed files with 38 additions and 1 deletions
+37
View File
@@ -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 -1
View File
@@ -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"