mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 11:27:17 +08:00
fix(CI): 修复文件名错误
This commit is contained in:
2
.github/workflows/goreleaser.yml
vendored
2
.github/workflows/goreleaser.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
- name: Fetch Latest Frontend
|
||||
run: |
|
||||
apt install -y curl jq unzip zip
|
||||
curl -s "https://jihulab.com/api/v4/projects/haozi-team%2Fpanel-frontend/releases" | jq -r '.[0].assets.links[] | select(.name | contains("arm64")) | .direct_asset_url' | xargs curl -L -o frontend.zip
|
||||
curl -s https://api.github.com/repos/haozi-team/panel-frontend/releases/latest | jq -r ".assets[] | select(.name | contains(\"dist\")) | .browser_download_url" | xargs curl -L -o frontend.zip
|
||||
rm -rf public
|
||||
unzip frontend.zip
|
||||
mv dist public
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
image: golang:bookworm
|
||||
image: golang:alpine
|
||||
|
||||
# 在每个任务执行前运行
|
||||
before_script:
|
||||
@@ -54,9 +54,11 @@ build:
|
||||
|
||||
fetch:
|
||||
stage: build
|
||||
before_script:
|
||||
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||
- apk add --no-cache curl jq unzip zip
|
||||
script:
|
||||
- apt install -y curl jq unzip zip
|
||||
- curl -s https://api.github.com/repos/haozi-team/panel-frontend/releases/latest | jq -r ".assets[] | select(.name | contains(\"admin\")) | .browser_download_url" | xargs curl -L -o frontend.zip
|
||||
- curl -s "https://jihulab.com/api/v4/projects/haozi-team%2Fpanel-frontend/releases" | jq -r '.[0].assets.links[] | select(.name | contains("dist")) | .direct_asset_url' | xargs curl -L -o frontend.zip
|
||||
- rm -rf public
|
||||
- unzip frontend.zip
|
||||
- mv dist public
|
||||
|
||||
Reference in New Issue
Block a user