mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-11 23:45:11 +08:00
新增README-ES.md(西班牙语)和README-JA.md(日语)文档,完善多语言README互链。优化各语言README徽章、技术栈、外链格式及语言切换区,提升文档一致性与可读性。
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: 构建 Github Pages
|
||
|
||
on:
|
||
push:
|
||
branches: [ main ] # 如果你的主分支叫 master,请改为 master
|
||
|
||
permissions:
|
||
contents: read
|
||
pages: write
|
||
id-token: write
|
||
|
||
jobs:
|
||
build-and-deploy:
|
||
runs-on: ubuntu-latest
|
||
environment:
|
||
name: github-pages
|
||
url: ${{ steps.deployment.outputs.page_url }}
|
||
steps:
|
||
- name: 检出代码
|
||
uses: actions/checkout@v6
|
||
|
||
- name: 安装 pnpm
|
||
uses: pnpm/action-setup@v4
|
||
|
||
- name: 安装 Nodejs
|
||
uses: actions/setup-node@v6
|
||
with:
|
||
node-version: 20
|
||
cache: 'pnpm'
|
||
|
||
- name: 安装依赖
|
||
run: pnpm install
|
||
|
||
- name: 构建前端项目
|
||
run: pnpm run build
|
||
|
||
# 关键步骤:告诉 GitHub Actions 跳过 Jekyll 检查
|
||
- name: 配置 Github Pages
|
||
uses: actions/configure-pages@v5
|
||
|
||
- name: 上传构建版
|
||
uses: actions/upload-pages-artifact@v4
|
||
with:
|
||
path: './docs'
|
||
|
||
- name: 部署到 GitHub Pages
|
||
uses: actions/deploy-pages@v4 |