feat: update admin-dist

This commit is contained in:
naiba 2024-10-24 22:35:26 +08:00
parent 7282882269
commit 0b6d0977ac
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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