feat: 从oss下载xdb

This commit is contained in:
yokowu
2025-08-14 20:02:33 +08:00
parent 65feb7c6c9
commit 8bb3f955f0

View File

@@ -65,7 +65,6 @@ jobs:
build:
needs: test
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
defaults:
run:
working-directory: ./backend
@@ -75,18 +74,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true
submodules: true
token: ${{ secrets.PRO_TOKEN }}
- name: Cache Git LFS
uses: actions/cache@v4
with:
path: .git/lfs
key: ${{ runner.os }}-git-lfs-${{ hashFiles('.gitattributes') }}
restore-keys: |
${{ runner.os }}-git-lfs-
- name: Get version
id: get_version
run: |
@@ -111,6 +101,9 @@ jobs:
mkdir -p assets-amd64/sgp
mkdir -p assets-arm64/sgp
mkdir -p assets/vsix
# 下载 xdb
wget -O pkg/ipdb/ip2region.xdb https://baizhiyun.oss-cn-hangzhou.aliyuncs.com/monkeycode/ip2region.xdb
# 下载 VSIX (架构无关)
VERSION_NO_V=${{ steps.get_version.outputs.VERSION }}