diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0aa8053..5763ea7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,37 +2,27 @@ name: release on: push: + branches-ignore: + - '**' tags: - 'v*.*.*' -permissions: - contents: write - # packages: write - # issues: write - jobs: goreleaser: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Fetch all tags - run: git fetch --force --tags + uses: actions/checkout@v1 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v1 with: go-version: 1.18 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v1 with: - distribution: goreleaser - version: latest args: release --rm-dist key: ${{ secrets.RELEASE_KEY }} env: