mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
feat: update admin-dist
This commit is contained in:
parent
7282882269
commit
0b6d0977ac
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -40,11 +40,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: "1.23.x"
|
go-version: "1.23.x"
|
||||||
|
|
||||||
- name: bootstrap
|
- name: generate swagger docs
|
||||||
run: |
|
run: |
|
||||||
go install github.com/swaggo/swag/cmd/swag@latest
|
go install github.com/swaggo/swag/cmd/swag@latest
|
||||||
ls -al `go env GOPATH`/bin/
|
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
||||||
`go env GOPATH`/bin/swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
|
||||||
|
|
||||||
- name: Build with tag
|
- name: Build with tag
|
||||||
if: contains(github.ref, 'refs/tags/')
|
if: contains(github.ref, 'refs/tags/')
|
||||||
@ -134,7 +133,7 @@ jobs:
|
|||||||
|
|
||||||
- name: prepare frontend dists
|
- name: prepare frontend dists
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/nezhahq/nezha-dashboard/releases/download/v0.0.2/dist.zip
|
wget https://github.com/nezhahq/nezha-dashboard/releases/download/v0.0.3/dist.zip
|
||||||
unzip dist.zip
|
unzip dist.zip
|
||||||
mv dist admin-dist
|
mv dist admin-dist
|
||||||
|
|
||||||
@ -153,7 +152,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})
|
export TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})
|
||||||
if [ -z "$TAG_NAME" ]; then
|
if [ -z "$TAG_NAME" ]; then
|
||||||
export TAG_NAME=$(echo ${GITHUB_REF#refs/heads/})
|
export TAG_NAME=$(echo ${GITHUB_HEAD_REF})
|
||||||
fi
|
fi
|
||||||
echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT
|
echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: "1.23.x"
|
go-version: "1.23.x"
|
||||||
|
|
||||||
- name: bootstrap
|
- name: generate swagger docs
|
||||||
run: |
|
run: |
|
||||||
go install github.com/swaggo/swag/cmd/swag@latest
|
go install github.com/swaggo/swag/cmd/swag@latest
|
||||||
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
||||||
|
Loading…
Reference in New Issue
Block a user