v0.5.84: matches origin filter, mobile gate, refresh reliability.
Ship Web refresh cache/lock, mobile demand gate, matches 职业/国服 filter, and related site updates through 0.5.84. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,6 +12,10 @@ on:
|
||||
- cron: "0 22 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: climperor-web-full-refresh
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
refresh:
|
||||
runs-on: self-hosted
|
||||
@@ -19,6 +23,15 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore refresh cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: web/.refresh-cache
|
||||
key: web-refresh-${{ runner.os }}-${{ hashFiles('web/data/patches.json') }}-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
web-refresh-${{ runner.os }}-${{ hashFiles('web/data/patches.json') }}-
|
||||
web-refresh-${{ runner.os }}-
|
||||
|
||||
- name: Install deps
|
||||
run: |
|
||||
set -e
|
||||
@@ -29,6 +42,8 @@ jobs:
|
||||
|
||||
- name: Refresh daily tier
|
||||
env:
|
||||
REFRESH_CACHE_ENABLED: "1"
|
||||
REFRESH_RUN_ID: ${{ github.run_id }}
|
||||
STRATZ_API_TOKEN: ${{ secrets.STRATZ_API_TOKEN }}
|
||||
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
|
||||
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
|
||||
@@ -39,3 +54,11 @@ jobs:
|
||||
PYTHON=python3
|
||||
command -v python3 >/dev/null || PYTHON=python
|
||||
"$PYTHON" web/refresh_web.py --tier daily
|
||||
|
||||
- name: Save refresh summary
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: web-daily-refresh-${{ github.run_id }}
|
||||
path: web/.refresh/summary.json
|
||||
if-no-files-found: warn
|
||||
|
||||
@@ -11,6 +11,10 @@ on:
|
||||
- cron: "0 */6 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: climperor-web-patch-refresh
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
refresh:
|
||||
runs-on: self-hosted
|
||||
@@ -18,6 +22,15 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore refresh cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: web/.refresh-cache
|
||||
key: web-refresh-${{ runner.os }}-${{ hashFiles('web/data/patches.json') }}-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
web-refresh-${{ runner.os }}-${{ hashFiles('web/data/patches.json') }}-
|
||||
web-refresh-${{ runner.os }}-
|
||||
|
||||
- name: Install deps
|
||||
run: |
|
||||
set -e
|
||||
@@ -28,6 +41,8 @@ jobs:
|
||||
|
||||
- name: Refresh patch tier
|
||||
env:
|
||||
REFRESH_CACHE_ENABLED: "1"
|
||||
REFRESH_RUN_ID: ${{ github.run_id }}
|
||||
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
|
||||
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
|
||||
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
|
||||
@@ -37,3 +52,11 @@ jobs:
|
||||
PYTHON=python3
|
||||
command -v python3 >/dev/null || PYTHON=python
|
||||
"$PYTHON" web/refresh_web.py --tier patch
|
||||
|
||||
- name: Save refresh summary
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: web-patch-refresh-${{ github.run_id }}
|
||||
path: web/.refresh/summary.json
|
||||
if-no-files-found: warn
|
||||
|
||||
@@ -10,6 +10,10 @@ on:
|
||||
- cron: "0 23 * * 1"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: climperor-web-full-refresh
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
refresh:
|
||||
runs-on: self-hosted
|
||||
@@ -17,6 +21,15 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore refresh cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: web/.refresh-cache
|
||||
key: web-refresh-${{ runner.os }}-${{ hashFiles('web/data/patches.json') }}-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
web-refresh-${{ runner.os }}-${{ hashFiles('web/data/patches.json') }}-
|
||||
web-refresh-${{ runner.os }}-
|
||||
|
||||
- name: Install deps
|
||||
run: |
|
||||
set -e
|
||||
@@ -27,6 +40,8 @@ jobs:
|
||||
|
||||
- name: Refresh weekly tier
|
||||
env:
|
||||
REFRESH_CACHE_ENABLED: "1"
|
||||
REFRESH_RUN_ID: ${{ github.run_id }}
|
||||
STRATZ_API_TOKEN: ${{ secrets.STRATZ_API_TOKEN }}
|
||||
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
|
||||
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
|
||||
@@ -37,3 +52,11 @@ jobs:
|
||||
PYTHON=python3
|
||||
command -v python3 >/dev/null || PYTHON=python
|
||||
"$PYTHON" web/refresh_web.py --tier weekly
|
||||
|
||||
- name: Save refresh summary
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: web-weekly-refresh-${{ github.run_id }}
|
||||
path: web/.refresh/summary.json
|
||||
if-no-files-found: warn
|
||||
|
||||
Reference in New Issue
Block a user