mirror of https://github.com/databricks/cli.git
Fix release action and make sure to also build for Windows (#43)
This commit is contained in:
parent
1ddba0caa8
commit
f309f68444
|
@ -18,17 +18,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: 1.18
|
||||||
cache: true
|
cache: true
|
||||||
- name: Import GPG key
|
|
||||||
id: import_gpg
|
|
||||||
uses: hashicorp/ghaction-import-gpg@v2.1.0
|
|
||||||
env:
|
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
||||||
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v3.1.0
|
uses: goreleaser/goreleaser-action@v3.1.0
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --rm-dist
|
||||||
env:
|
env:
|
||||||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
@ -15,12 +15,7 @@ builds:
|
||||||
- darwin
|
- darwin
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- '386'
|
|
||||||
- arm
|
|
||||||
- arm64
|
- arm64
|
||||||
ignore:
|
|
||||||
- goos: darwin
|
|
||||||
goarch: '386'
|
|
||||||
binary: '{{ .ProjectName }}_v{{ .Version }}'
|
binary: '{{ .ProjectName }}_v{{ .Version }}'
|
||||||
archives:
|
archives:
|
||||||
- format: zip
|
- format: zip
|
||||||
|
@ -30,15 +25,6 @@ checksum:
|
||||||
algorithm: sha256
|
algorithm: sha256
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: '{{ incpatch .Version }}-devel'
|
name_template: '{{ incpatch .Version }}-devel'
|
||||||
# signs:
|
|
||||||
# - artifacts: checksum
|
|
||||||
# args:
|
|
||||||
# - "--local-user"
|
|
||||||
# - "{{ .Env.GPG_FINGERPRINT }}"
|
|
||||||
# - "--output"
|
|
||||||
# - "${signature}"
|
|
||||||
# - "--detach-sign"
|
|
||||||
# - "${artifact}"
|
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
filters:
|
filters:
|
||||||
|
|
Loading…
Reference in New Issue