From 99338cb899a06f81eb2daed7ba6ba8af72b275fa Mon Sep 17 00:00:00 2001 From: engigu Date: Mon, 1 Jan 2024 21:14:46 +0800 Subject: [PATCH] update action --- .github/workflows/release.yml | 56 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48ebace..1304dc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,11 @@ name: goreleaser on: -# push: -# # run only against tags -# tags: -# - '*' - workflow_dispatch: # + push: + # run only against tags + tags: + - '*' +# workflow_dispatch: # permissions: contents: write @@ -36,26 +36,26 @@ jobs: # goreleaser: # runs-on: ubuntu-latest # steps: -# - uses: actions/checkout@v3 -# with: -# fetch-depth: 0 -# - run: git fetch --force --tags -# - uses: actions/setup-go@v3 -# with: -# go-version: '>=1.20.2' -# cache: true -# # More assembly might be required: Docker logins, GPG, etc. It all depends -# # on your needs. -# - uses: goreleaser/goreleaser-action@v4 -# with: -# # either 'goreleaser' (default) or 'goreleaser-pro': -# distribution: goreleaser -# version: latest -# args: release --clean -# env: -# GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} -# # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' -# # distribution: -# # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} -# -# + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: git fetch --force --tags + - uses: actions/setup-go@v3 + with: + go-version: '>=1.20.2' + cache: true + # More assembly might be required: Docker logins, GPG, etc. It all depends + # on your needs. + - uses: goreleaser/goreleaser-action@v4 + with: + # either 'goreleaser' (default) or 'goreleaser-pro': + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} + # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' + # distribution: + # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} + +