Compare commits

...
6 Commits
Author SHA1 Message Date
root 83db3293af Create 新闻 “sveltia-可视化创建测试”
build-and-deploy / build (push) Successful in 53s
2026-07-23 18:09:34 +00:00
root 1be8a687d5 feat: CMS test news
build-and-deploy / build (push) Successful in 47s
2026-07-23 17:59:29 +00:00
lzy 76d70282b7 feat(cms): Sveltia 接生产 Gitea (gitea.shoux.net OAuth)
build-and-deploy / build (push) Successful in 46s
2026-07-24 01:57:19 +08:00
lzy dcebc1ec9c ci: 构建后自动部署 dist 到 test.shoux.net
build-and-deploy / build (push) Successful in 50s
2026-07-24 01:43:57 +08:00
lzy 71d0721290 ci: 去掉 ossutil version(v1.7 无此子命令)
build-and-deploy / build (push) Successful in 45s
2026-07-24 00:59:59 +08:00
lzy 88724d4692 ci: workflow 加 ossutil 安装与 OSS 同步步骤
build-and-deploy / build (push) Failing after 47s
2026-07-24 00:56:49 +08:00
4 changed files with 37 additions and 3 deletions
+20
View File
@@ -24,3 +24,23 @@ jobs:
- name: Verify dist
run: ls -la dist/
# 部署到 test.shoux.netjob 容器挂载宿主 /var/www/test-shoux-net → /deploy
- name: Deploy to test.shoux.net
run: |
rm -rf /deploy/*
cp -r dist/. /deploy/
echo "[deploy] dist -> /deploy (host /var/www/test-shoux-net)"
- name: Install ossutil
run: |
curl -fsSL -o /tmp/ossutilinstall.sh https://gosspublic.alicdn.com/ossutil/install.sh
bash /tmp/ossutilinstall.sh
- name: Sync to OSS
env:
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
OSS_ENDPOINT: ${{ secrets.OSS_ENDPOINT }}
OSS_BUCKET: ${{ secrets.OSS_BUCKET }}
run: bash scripts/deploy-oss.sh
+4 -3
View File
@@ -1,11 +1,12 @@
# yaml-language-server: $schema=https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json
# 本地验证用本地 Gitea(Task 5 起的);生产换真实 Gitea 地址
# Sveltia CMS backend:自建 Giteahttps://gitea.shoux.netOAuth2 PKCE
backend:
name: gitea
repo: root/official-site-base
base_url: http://localhost:3001
api_root: http://localhost:3001/api/v1
base_url: https://gitea.shoux.net
api_root: https://gitea.shoux.net/api/v1
app_id: b6fe6225-8700-4599-909e-98a8c5a8defa
media_folder: /public/media
public_folder: /media
+6
View File
@@ -0,0 +1,6 @@
---
title: CMS 自助发布测试
date: 2026-07-24
category: 公告
---
这是经 CMS 链路提交的测试新闻(模拟 Sveltia 编辑→Gitea→CI 自动部署→test.shoux.net)。
@@ -0,0 +1,7 @@
---
title: Sveltia 可视化创建测试
date: 2026-07-24
category: 公告
---
这条新闻由 Sveltia CMS 可视化创建,验证用户登录→编辑→发布完整闭环。