From 36417bc21fc6da0c21913c3f3b9b1f8c04eac909 Mon Sep 17 00:00:00 2001 From: elfgzp Date: Tue, 17 Nov 2020 10:27:29 +0800 Subject: [PATCH] fix: fix actions --- .github/workflows/release.yml | 18 ++++++------------ Dockerfile | 2 +- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15808e5..d3f7a75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,8 +15,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GOARCH: "386" GOOS: linux - MAIN_GO_PATH: ./main.go - BUILD_OUTPUT: gortal + MAIN_GO_PATH: ./ release-linux-amd64: name: release linux/amd64 runs-on: ubuntu-latest @@ -28,8 +27,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GOARCH: amd64 GOOS: linux - MAIN_GO_PATH: ./main.go - BUILD_OUTPUT: gortal + MAIN_GO_PATH: ./ release-darwin-386: name: release darwin/386 runs-on: ubuntu-latest @@ -41,8 +39,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GOARCH: "386" GOOS: darwin - MAIN_GO_PATH: ./main.go - BUILD_OUTPUT: gortal + MAIN_GO_PATH: ./ release-darwin-amd64: name: release darwin/amd64 runs-on: ubuntu-latest @@ -54,8 +51,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GOARCH: amd64 GOOS: darwin - MAIN_GO_PATH: ./main.go - BUILD_OUTPUT: gortal + MAIN_GO_PATH: ./ release-windows-386: name: release windows/386 runs-on: ubuntu-latest @@ -67,8 +63,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GOARCH: "386" GOOS: windows - MAIN_GO_PATH: ./main.go - BUILD_OUTPUT: gortal + MAIN_GO_PATH: ./ release-windows-amd64: name: release windows/amd64 runs-on: ubuntu-latest @@ -80,5 +75,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GOARCH: amd64 GOOS: windows - MAIN_GO_PATH: ./main.go - BUILD_OUTPUT: gortal + MAIN_GO_PATH: ./ diff --git a/Dockerfile b/Dockerfile index cf4b61f..1619b82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN mkdir /root/.ssh COPY go.mod go.sum ./ RUN go mod download COPY . . -RUN CGO_ENABLED=0 go build -o gortal main.go +RUN CGO_ENABLED=0 go build ./ # CGO_ENABLED=0 # Change go-release.action