diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4ed143..e061730 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,22 +3,28 @@ on: push: tags: - "*" # triggers only if push new tag version, like `0.8.4` or else + +permissions: + contents: write + jobs: - build: - name: GoReleaser build + goreleaser: runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory + - + name: Checkout uses: actions/checkout@v4 with: - fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ - - name: Set up Go + fetch-depth: 0 + - + name: Set up Go uses: actions/setup-go@v4 with: go-version: 1.21 - id: go - - name: Run GoReleaser + - + name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 + with: workdir: ./cmd/templit distribution: goreleaser