Skip to content

Commit

Permalink
ci: auto release into github
Browse files Browse the repository at this point in the history
  • Loading branch information
edy555 committed Aug 18, 2019
1 parent 28614db commit ab9a1f1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,24 @@ jobs:
git submodule update --remote
- run:
name: "Build Firmware"
command: make
command: make VERSION=\"${CIRCLE_TAG}\"
- run:
name: "Remove obj/lst files"
command: rm -r build/obj build/lst
- run:
name: "Archive artifacts"
command: zip NanoVNA-${CIRCLE_TAG}.zip build/*
- store_artifacts:
path: build
destination: build
publish-github-release:
docker:
- image: circleci/golang:1.8
steps:
- attach_workspace:
at: ./artifacts
- run:
name: "Publish Release on GitHub"
command: |
go get github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/NanoVNA-${CIRCLE_TAG}.zip

0 comments on commit ab9a1f1

Please sign in to comment.