Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lsochanowski authored Dec 26, 2022
1 parent ffb97af commit bc77a15
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,16 @@ jobs:
- run: go get github.com/eclipse/paho.mqtt.golang
- run: go get go.bug.st/serial
- run: make
# - run: sudo apt update
# - run: sudo apt install -y upx squashfs-tools && sudo apt-get clean
# - run: make upx
# - run: make compilesquash
# - run: cp OS/Kernel/openwrt-ar71xx-generic-cus531-16M-kernel.bin dist/
- run: sudo apt update
- run: sudo apt install -y upx squashfs-tools && sudo apt-get clean
- run: make upx
- run: make compilesquash
- run: cp OS/Kernel/openwrt-ar71xx-generic-cus531-16M-kernel.bin dist/
- run:
name: "Publish Release on GitHub"
command: |
go get github.com/tcnksm/ghr
go install github.com/tcnksm/ghr
VERSION=$(git rev-parse --short HEAD)
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete 1.0.${CIRCLE_BUILD_NUM} dist/
publish-github-release:
docker:
- image: cibuilds/github:0.10
steps:
- attach_workspace:
at: ./artifacts
- run:
name: "Publish Release on GitHub"
command: |
VERSION=$(my-binary --version)
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/

0 comments on commit bc77a15

Please sign in to comment.