@@ -94,31 +94,31 @@ jobs:
9494 # Write-Host "Attempting to run CLI..."
9595 # .\cli-v2.exe install
9696
97- # # For now we are not releasing the CLI, as we are making some quicker iterations
98- # release:
99- # needs: [test, ittest]
100- # if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.event_name == 'push'
101- # runs-on: ubuntu-latest
102- # steps:
103- # - name: Checkout
104- # uses: actions/checkout@v4
105- # with:
106- # fetch-depth: 0
107- # - name: Set up Go
108- # uses: actions/setup-go@v4
109- # - name: "Git Version"
110- # id: generate-version
111- 112- # - name: "Tag version"
113- # run: |
114- # git tag ${{ steps.generate-version.outputs.version }}
115- # git push --tags "https://codacy:${{ secrets.GITHUB_TOKEN }}@github.com/codacy/codacy-cli-v2"
116- # - name: Run GoReleaser
117- # uses: goreleaser/goreleaser-action@v5
118- # with:
119- # distribution: goreleaser
120- # # 'latest', 'nightly', or a semver
121- # version: "latest"
122- # args: release --clean
123- # env:
124- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+ # For now we are not releasing the CLI, as we are making some quicker iterations
98+ release :
99+ needs : [test, ittest]
100+ if : github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.event_name == 'push'
101+ runs-on : ubuntu-latest
102+ steps :
103+ - name : Checkout
104+ uses : actions/checkout@v4
105+ with :
106+ fetch-depth : 0
107+ - name : Set up Go
108+ uses : actions/setup-go@v4
109+ - name : " Git Version"
110+ id : generate-version
111+ 112+ - name : " Tag version"
113+ run : |
114+ git tag ${{ steps.generate-version.outputs.version }}
115+ git push --tags "https://codacy:${{ secrets.GITHUB_TOKEN }}@github.com/codacy/codacy-cli-v2"
116+ - name : Run GoReleaser
117+ uses : goreleaser/goreleaser-action@v5
118+ with :
119+ distribution : goreleaser
120+ # 'latest', 'nightly', or a semver
121+ version : " latest"
122+ args : release --clean
123+ env :
124+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments