-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 1011 Bytes
/
go-provider.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: provider
permissions:
contents: write
packages: write
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: |
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