diff --git a/.github/workflows/.release.yml b/.github/workflows/.release.yml index 85fcdf5..c962f91 100644 --- a/.github/workflows/.release.yml +++ b/.github/workflows/.release.yml @@ -13,12 +13,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.21 - @@ -33,13 +33,25 @@ jobs: go run main.go gendoc --type man pwd ls + - + if: ${{ !startsWith(github.ref, 'refs/tags/v') }} + run: echo "flags=--snapshot" >> $GITHUB_ENV - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest - args: release --clean + args: release --clean ${{ env.flags }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} + - + name: Run Version + run: | + dist/go-passbolt-cli_linux_amd64_v1/passbolt -v + - + uses: actions/upload-artifact@v4 + with: + name: go-passbolt-cli-artifacts + path: dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml index a22a202..7aff112 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -48,7 +48,7 @@ brews: license: "MIT" skip_upload: false description: "A CLI tool to interact with Passbolt, a Open source Password Manager for Teams" - folder: Formula + directory: Formula install: | bin.install "passbolt" bash_completion.install "completion/bash" => "passbolt"