1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-08-12 17:40:32 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Sunwuyuan 孙悟元
0a1d4a824d
Delete .github/workflows/azure-static-web-apps-icy-river-041d8ab00.yml 2026-08-11 09:41:01 +08:00
Sunwuyuan 孙悟元
8161909c81
update domain 2026-08-11 01:30:42 +00:00
7 changed files with 5 additions and 68 deletions

View File

@ -1,5 +1,5 @@
# Classworks KV 默认服务器域名
VITE_DEFAULT_KV_SERVER=https://kv-service.houlang.cloud
VITE_DEFAULT_KV_SERVER=https://kv-service.wuyuan.dev
# Classworks KV 授权服务器域名
VITE_DEFAULT_AUTH_SERVER=https://kv.houlang.cloud

View File

@ -1,62 +0,0 @@
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Install OIDC Client from Core Package
run: npm install @actions/core@1.6.0 @actions/http-client
- name: Get Id Token
uses: actions/github-script@v6
id: idtoken
with:
script: |
const coredemo = require('@actions/core')
return await coredemo.getIDToken()
result-encoding: string
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
env:
NODE_VERSION: 20 # 👈 Force Node.js 20.x instead of Oryx default (18.x)
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ICY_RIVER_041D8AB00 }}
action: "upload"
###### Repository/Build Configurations ######
app_location: "/"
api_location: ""
output_location: "dist"
github_id_token: ${{ steps.idtoken.outputs.result }}
###### End of Repository/Build Configurations ######
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
action: "close"

View File

@ -34,7 +34,7 @@ jobs:
- name: Build
env:
VITE_APP_ID: d158067f53627d2b98babe8bffd2fd7d
VITE_DEFAULT_KV_SERVER: https://kv-service.houlang.cloud
VITE_DEFAULT_KV_SERVER: https://kv-service.wuyuan.dev
VITE_DEFAULT_AUTH_SERVER: https://kv.houlang.cloud
run: |
npm install

View File

@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
env:
VITE_APP_ID: d158067f53627d2b98babe8bffd2fd7d
VITE_DEFAULT_KV_SERVER: https://kv-service.houlang.cloud
VITE_DEFAULT_KV_SERVER: https://kv-service.wuyuan.dev
VITE_DEFAULT_AUTH_SERVER: https://kv.houlang.cloud
STORE_PRODUCTION_URL: ${{ inputs.production_url || 'https://cs.houlang.cloud/' }}

View File

@ -257,7 +257,7 @@ export default {
if (autoConfigureCloud) {
// 使用classworksCloudDefaults配置
const classworksCloudDefaults = {
"server.domain": import.meta.env.VITE_DEFAULT_KV_SERVER || "https://kv-service.houlang.cloud",
"server.domain": import.meta.env.VITE_DEFAULT_KV_SERVER || "https://kv-service.wuyuan.dev",
"server.siteKey": "",
};

View File

@ -8,7 +8,6 @@ import { getSetting } from "./settings";
// Server list for classworkscloud provider (in default priority order)
const CLASSWORKS_CLOUD_SERVERS = [
"https://kv-service.houlang.cloud",
"https://kv-service.wuyuan.dev",
];

View File

@ -68,7 +68,7 @@ const SETTINGS_CHANGED_EVENT = "classworks:settings:changed";
// 新增: Classworks云端存储的默认设置
const classworksCloudDefaults = {
"server.domain": import.meta.env.VITE_DEFAULT_KV_SERVER || "https://kv-service.houlang.cloud",
"server.domain": import.meta.env.VITE_DEFAULT_KV_SERVER || "https://kv-service.wuyuan.dev",
//"server.domain": "http://localhost:3030",
"server.siteKey": "",
};