diff --git a/.github/workflows/goreleaser-workflow.yml b/.github/workflows/goreleaser-workflow.yml index d42f112..3816d9f 100644 --- a/.github/workflows/goreleaser-workflow.yml +++ b/.github/workflows/goreleaser-workflow.yml @@ -1,6 +1,7 @@ name: goreleaser on: + workflow_dispatch: push: tags: - 'v*' @@ -26,7 +27,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v4 with: - go-version: v1.19 + go-version: v1.22 - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Delete non-semver tags @@ -34,7 +35,7 @@ jobs: - name: Set LDFLAGS run: echo LDFLAGS="$(make ldflags)" >> $GITHUB_ENV - name: Run GoReleaser on tag - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + if: contains(github.ref, 'refs/tags/') uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser @@ -43,7 +44,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser on push without tag - if: github.event_name == 'push' && !contains(github.ref, 'refs/tags/') + if: !contains(github.ref, 'refs/tags/') uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser