From 6e9713a983e09a4127e5575ecf6f8a562d069c5a Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 13 Dec 2020 11:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20go=20mod=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/agent.yml | 8 ++++++++ .goreleaser.yml | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index b072548..4881e52 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -16,6 +16,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + - name: Set up Go latest version + uses: actions/setup-go@v2 + - run: | + go mod vendor + - name: Set up Go 1.10.8 + uses: actions/setup-go@v2 + with: + go-version: 1.10.8 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 if: startsWith(github.ref, 'refs/tags/') diff --git a/.goreleaser.yml b/.goreleaser.yml index 51b9751..1fcafbb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,3 @@ -before: - hooks: - - go mod tidy -v builds: - id: nezha-agent env: