From 4d4e332a55839a7ed58d545094882606712dae7a Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 13 Dec 2020 11:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/agent.yml | 13 ------------- .goreleaser.yml | 3 +++ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 7c3f4de..b072548 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -16,19 +16,6 @@ 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 - mkdir -p /home/runner/go/src/ - mv ./vendor/* /home/runner/go/src/ - git checkout . - mkdir -p /home/runner/go/src/github.com/naiba/nezha - cp -r ../nezha /home/runner/go/src/github.com/naiba/ - - 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 1fcafbb..51b9751 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,6 @@ +before: + hooks: + - go mod tidy -v builds: - id: nezha-agent env: