diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7879e41..8aa1a0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: tags: - "*" # triggers only if push new tag version, like `0.8.4` or else +permissions: + contents: write # create the release and upload assets with the built-in token + jobs: build: name: GoReleaser build @@ -12,20 +15,19 @@ jobs: steps: - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ - - name: Set up Go 1.22 - uses: actions/setup-go@v2 + - name: Set up Go + uses: actions/setup-go@v5 with: - go-version: 1.22 - id: go + go-version-file: go.mod - name: Run GoReleaser - uses: goreleaser/goreleaser-action@master + uses: goreleaser/goreleaser-action@v6 with: - version: latest + version: "~> v2" args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 8d58f8a..75bf4b9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 project_name: smcli builds: - env: [CGO_ENABLED=0] @@ -8,8 +9,8 @@ builds: nfpms: - maintainer: Carlos A Becker - description: Sample project. - homepage: https://github.com/caarlos0/tasktimer + description: Manage Supermicro servers through their BMC (Redfish). + homepage: https://github.com/Charlie-Root/smcli license: MIT formats: - deb