mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
ci: remove CIRCLE_TAG from build job
This commit is contained in:
parent
69a55c8b7e
commit
00753abe91
|
|
@ -12,23 +12,17 @@ jobs:
|
||||||
git submodule update --remote
|
git submodule update --remote
|
||||||
- run:
|
- run:
|
||||||
name: "Build Firmware"
|
name: "Build Firmware"
|
||||||
command: make VERSION=\"${CIRCLE_TAG}\"
|
command: make
|
||||||
- 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: mkdir archives && zip archives/nanovna-firmware-${CIRCLE_TAG}.zip build/*.bin build/*.hex build/*.elf
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: build
|
path: build
|
||||||
destination: build
|
destination: build
|
||||||
- store_artifacts:
|
|
||||||
path: archives
|
|
||||||
destination: .
|
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: archives
|
root: .
|
||||||
paths:
|
paths:
|
||||||
- .
|
- build
|
||||||
publish-github-release:
|
publish-github-release:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.8
|
- image: circleci/golang:1.8
|
||||||
|
|
@ -39,6 +33,7 @@ jobs:
|
||||||
name: "Publish Release on GitHub"
|
name: "Publish Release on GitHub"
|
||||||
command: |
|
command: |
|
||||||
go get github.com/tcnksm/ghr
|
go get github.com/tcnksm/ghr
|
||||||
|
zip nanovna-firmware-${CIRCLE_TAG}.zip build/*.bin build/*.hex build/*.elf
|
||||||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} nanovna-firmware-${CIRCLE_TAG}.zip
|
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} nanovna-firmware-${CIRCLE_TAG}.zip
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
|
||||||
1
Makefile
1
Makefile
|
|
@ -54,7 +54,6 @@ endif
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
ifeq ($(VERSION),)
|
ifeq ($(VERSION),)
|
||||||
#VERSION="unknown"
|
|
||||||
VERSION="$(shell git describe --tags)"
|
VERSION="$(shell git describe --tags)"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue