Skip to content

Commit 899219d

Browse files
authored
Merge pull request #18 from arangodb-managed/release-binaries
Release binaries on github
2 parents e4e0e49 + f5ee1c5 commit 899219d

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.circleci/config.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,41 @@ jobs:
3939
paths:
4040
- "/go/pkg/mod"
4141

42+
deploy-release:
43+
executor: go-executor
44+
steps:
45+
- checkout
46+
- setup_remote_docker
47+
- run: cp go.sum go.sum.orig
48+
- restore_cache:
49+
keys:
50+
- go-mod-v1-{{ checksum "go.sum.orig" }}
51+
- run: |
52+
go get
53+
make bootstrap
54+
make all
55+
- run:
56+
name: "Publish Release on GitHub"
57+
command: |
58+
github-release release --user ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --tag ${CIRCLE_TAG}
59+
github-release upload --user ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --tag ${CIRCLE_TAG} --name terraform-provider-oasis.zip --file ./assets/terraform-provider-oasis.zip
60+
4261
workflows:
4362
version: 2
4463
build_test_store_artifacts:
4564
jobs:
46-
- build
65+
- build:
66+
filters:
67+
tags:
68+
only: /.*/
69+
- deploy-release:
70+
requires:
71+
- build
72+
filters:
73+
branches:
74+
ignore: /.*/
75+
tags:
76+
only: /^v.*/
4777
nightly:
4878
triggers:
4979
- schedule:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
bin/
33
.*.swp
44
.idea
5+
assets

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ binaries:
1717
-output="bin/{{.OS}}/{{.Arch}}/$(PROJECT)" \
1818
-tags="netgo" \
1919
./...
20+
mkdir -p assets
21+
zip -r assets/$(PROJECT).zip bin/*
2022

2123
check:
2224
zutano go check ./...

0 commit comments

Comments
 (0)