File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff 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+
4261workflows :
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 :
Original file line number Diff line number Diff line change 22bin /
33. * .swp
44.idea
5+ assets
Original file line number Diff line number Diff 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
2123check :
2224 zutano go check ./...
You can’t perform that action at this time.
0 commit comments