Skip to content

Commit

Permalink
Merge pull request #449 from deniszh/DZ-fix-pkg-upload
Browse files Browse the repository at this point in the history
Fix issues with upload
  • Loading branch information
deniszh committed Feb 18, 2022
2 parents ff8ac58 + 97321f2 commit 0d2c8b0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ jobs:
- name: Check version
id: check_version
run: |
./out/${BINARY}-linux-amd64 -version
[ v$(./out/${BINARY}-linux-amd64 -version) = ${{ github.event.release.tag_name }} ]
./out/${BINARY}-linux-amd64 -version | grep "${{ github.event.release.tag_name }}"
- name: Artifact
id: artifact
Expand Down
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

language: go

go:
- 1.17

script:
- make test

before_deploy:
- lsb_release -a
- sudo apt-get update
- sudo apt-get install -y ruby ruby-dev rpm
- GO111MODULE=off go get github.com/mitchellh/gox
- gem install rake
- gem install fpm:1.10.2 # newer fpm is broken https://github.com/jordansissel/fpm/issues/1612
- make gox-build
- make fpm-deb
- make fpm-rpm

deploy:
provider: releases
skip_cleanup: true
api_key:
secure: VzFUZ1LemIo7KLoVv3r+gMEQJ9mj8om0YojWJ+bXFFsGCBHVBsAxn32j+6BTJq3pF2tkYCJmqVBjBF6QIFyW0pz+v2vVBCXoebXZWaS4KogThlT6uS7SqKUqfEGejofVAo6RZlY9LNKaPNEA4mE9TNMfDMvCaWlgQDyvi7i6hr0=
file_glob: true
file:
- "*.{deb,rpm}"
- "build/go-carbon-*"
on:
repo: go-graphite/go-carbon
tags: true

0 comments on commit 0d2c8b0

Please sign in to comment.