diff --git a/.github/workflows/go-provider.yml b/.github/workflows/go-provider.yml index 348473b..ea0604d 100644 --- a/.github/workflows/go-provider.yml +++ b/.github/workflows/go-provider.yml @@ -21,3 +21,18 @@ jobs: go get . go install github.com/mitchellh/gox@latest make build + make checksum + - name: Archive Binaries + run: | + mkdir -p release + find bin -type f -exec cp {} release/ \; + cp checksums.txt release/ + cd release + tar -czvf terraform-provider-qdrant-cloud.tar.gz * + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: release/terraform-provider-qdrant-cloud.tar.gz + asset_name: terraform-provider-qdrant-cloud.tar.gz + asset_content_type: application/gzip diff --git a/GNUmakefile b/GNUmakefile index 7306f1d..9b055b7 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -26,7 +26,7 @@ generate-client: cd internal && swagger-codegen generate -i ./spec.json -l go --output client --additional-properties packageName=cloud build: - CGO_ENABLED=0 gox \ + CGO_ENABLED=0 ~/go/bin/gox \ -osarch="linux/amd64 linux/arm linux/arm64 darwin/amd64 darwin/arm64 windows/amd64" \ -output="bin/{{.OS}}/{{.Arch}}/${BINARY}_v$(VERSION)" \ -tags="netgo" \ @@ -45,3 +45,7 @@ install: build .PHONY: generate-help generate-help: go generate ./... + +.PHONY: checksum +checksum: + find bin -type f -exec sha256sum {} \; > checksums.txt