diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2f897cd..9178b4c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,14 +16,17 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v4 with: - go-version: "1.21" - cache: false + go-version: ">=1.20" + cache: true + - name: Check golang version + run: go version # 使用 goreleaser 进行生成多平台代码并且上传到github release进行发布 - name: Create release on GitHub uses: docker://goreleaser/goreleaser:latest with: + cache: true args: release --clean env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file