mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 09:17:18 +08:00
fix: embed目录错误
This commit is contained in:
1
.github/workflows/goreleaser.yml
vendored
1
.github/workflows/goreleaser.yml
vendored
@@ -22,6 +22,7 @@ jobs:
|
||||
sudo apt-get install -y curl jq unzip zip
|
||||
curl -sSL https://api.github.com/repos/TheTNB/panel-frontend/releases/latest | jq -r ".assets[] | select(.name | contains(\"dist\")) | .browser_download_url" | xargs curl -L -o frontend.zip
|
||||
unzip frontend.zip
|
||||
rm -rf embed/frontend
|
||||
mv dist embed/frontend
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -67,7 +67,3 @@ out/
|
||||
*.sublime*
|
||||
__debug_bin
|
||||
.project
|
||||
|
||||
# 嵌入文件 #
|
||||
embed/*
|
||||
!embed/embed.go
|
||||
|
||||
@@ -63,6 +63,7 @@ fetch:
|
||||
script:
|
||||
- curl -sSL "https://git.haozi.net/api/v4/projects/opensource%2Fpanel-frontend/releases" | jq -r '.[0].assets.links[] | select(.name | contains("dist")) | .direct_asset_url' | xargs curl -L -o frontend.zip
|
||||
- unzip frontend.zip
|
||||
- rm -rf embed/frontend
|
||||
- mv dist embed/frontend
|
||||
artifacts:
|
||||
name: "frontend"
|
||||
|
||||
1
embed/frontend/.gitignore
vendored
Normal file
1
embed/frontend/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*
|
||||
Reference in New Issue
Block a user