From 4339d9e24700b6481c48b7aa56b3fd7704baed5a Mon Sep 17 00:00:00 2001 From: jdnjk <2394058778@qq.com> Date: Sat, 31 Aug 2024 17:56:17 +0800 Subject: [PATCH] s --- .github/workflows/build_dev.yml | 2 +- .github/workflows/go.yml | 2 +- app.go | 2 +- version/forge.go => forge.go | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename version/forge.go => forge.go (100%) diff --git a/.github/workflows/build_dev.yml b/.github/workflows/build_dev.yml index 612c90a..3e9c9f6 100644 --- a/.github/workflows/build_dev.yml +++ b/.github/workflows/build_dev.yml @@ -22,7 +22,7 @@ jobs: go-version: '1.22.2' - name: 构建 - run: go build -v ./app.go version/forge.go + run: go build -v ./app.go forge.go - name: capture build artifacts uses: actions/upload-artifact@v2 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fa8bf13..7ba9922 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -44,7 +44,7 @@ jobs: check-latest: true - name: Build - run: go build -o dist/${{ env.BUILD_NAME }} app.go version/forge.go && ls dist + run: go build -o dist/${{ env.BUILD_NAME }} app.go forge.go && ls dist - name: Get version id: get_version diff --git a/app.go b/app.go index c6585d7..0a6bd07 100644 --- a/app.go +++ b/app.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "./version/forge" + "./forge" ) //导入 func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "正在扫描环境") diff --git a/version/forge.go b/forge.go similarity index 100% rename from version/forge.go rename to forge.go