Skip to content

Commit

Permalink
Circle config bugfix (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
landrito authored Sep 11, 2018
1 parent 26e26ca commit 64adfd7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ workflows:
branches:
ignore: /.*/
tags:
only: '/^v\d+(\.[\d]+)*$/'
only: '/^v\d+(\.\d+)*$/'
jobs:
build:
docker:
Expand Down Expand Up @@ -81,7 +81,6 @@ jobs:
gox -os="darwin" -arch="amd64" -output \
"dist/gapic-showcase-v1alpha2-${VERSION}-{{.OS}}-{{.Arch}}" \
github.com/googleapis/gapic-showcase/
ls dist
- run:
name: Install protoc
command: |
Expand All @@ -108,17 +107,16 @@ jobs:
--include_source_info \
-o dist/gapic-showcase-v1alpha2-${VERSION}.desc \
tmp/api-common-protos/google/showcase/v1alpha2/echo.proto
ls dist
- run:
name: Make a tarball of the protos.
command: |
mkdir tmp/gapic-showcase-v1alpha2-${VERSION}-protos
cp -rv tmp/api-common-protos/google tmp/gapic-showcase-v1alpha2-${VERSION}-protos
cd tmp/ && tar -zcvf ../dist/gapic-showcase-v1alpha2-${VERSION}-protos.tar.gz gapic-showcase-v1alpha2-${VERSION}-protos
ls dist
cp -r tmp/api-common-protos/google tmp/gapic-showcase-v1alpha2-${VERSION}-protos
cd tmp/ && tar -zcf ../dist/gapic-showcase-v1alpha2-${VERSION}-protos.tar.gz gapic-showcase-v1alpha2-${VERSION}-protos
- run:
name: Attach compiled stuff to the tag.
command: |
ls dist
go get github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} \
-u ${CIRCLE_PROJECT_USERNAME} \
Expand Down

0 comments on commit 64adfd7

Please sign in to comment.