mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
ci: auto release into github
This commit is contained in:
parent
28614dbb4a
commit
ab9a1f1ec4
|
|
@ -12,10 +12,24 @@ jobs:
|
||||||
git submodule update --remote
|
git submodule update --remote
|
||||||
- run:
|
- run:
|
||||||
name: "Build Firmware"
|
name: "Build Firmware"
|
||||||
command: make
|
command: make VERSION=\"${CIRCLE_TAG}\"
|
||||||
- run:
|
- run:
|
||||||
name: "Remove obj/lst files"
|
name: "Remove obj/lst files"
|
||||||
command: rm -r build/obj build/lst
|
command: rm -r build/obj build/lst
|
||||||
|
- run:
|
||||||
|
name: "Archive artifacts"
|
||||||
|
command: zip NanoVNA-${CIRCLE_TAG}.zip build/*
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: build
|
path: build
|
||||||
destination: 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue