feat: 支持获取指定版本

This commit is contained in:
耗子
2023-10-23 19:39:38 +08:00
parent 24a32c03fd
commit 12c25bfcab
8 changed files with 152 additions and 19 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
- name: Fetch Frontend
run: |
sudo apt-get 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(\"dist\")) | .browser_download_url" | xargs curl -L -o frontend.zip
curl -L -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 -1
View File
@@ -13,6 +13,6 @@ jobs:
with:
go-version: 'stable'
- name: Install dependencies
run: go mod tidy
run: sudo apt-get install -y curl jq
- name: Run tests
run: go test ./...