Skip to content

Commit

Permalink
Upload assets from later goreleaser runs with hub
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Nov 27, 2018
1 parent eece981 commit 7c066d8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .goreleaser-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ nfpm:
'GeoIP.conf': '/etc/GeoIP.conf'
release:
# We disable the release as there is no way to disable the creation of
# the archive version and we don't want to upload those.
# the archive version and we don't want to upload those. We also can
# only do one release.
disable: true
3 changes: 3 additions & 0 deletions .goreleaser-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ builds:
post: 'make data OS=Windows_NT BUILDDIR=.'
checksum:
name_template: 'checksums-windows.txt'
release:
# We can only do one release.
disable: true
21 changes: 19 additions & 2 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,22 @@ git push
git push --tags

goreleaser release --rm-dist -f .goreleaser.yml --release-notes <(echo "$message")
goreleaser release --rm-dist -f .goreleaser-windows.yml --release-notes <(echo"$message")
goreleaser release --rm-dist -f .goreleaser-packages.yml --release-notes <(echo "$message")
make clean BUILDDIR=.

goreleaser release --rm-dist -f .goreleaser-windows.yml --skip-publish
hub release edit -m "$message" \
-a "dist/geoipupdate_${version}_windows_386.zip" \
-a "dist/geoipupdate_${version}_windows_amd64.zip" \
-a dist/checksums-windows.txt \
"$tag"
make clean BUILDDIR=.

goreleaser release --rm-dist -f .goreleaser-packages.yml --skip-publish
hub release edit -m "$message" \
-a dist/checksums-dpkg-rpm.txt \
-a "dist/geoipupdate_${version}_linux_386.deb" \
-a "dist/geoipupdate_${version}_linux_amd64.deb" \
-a "dist/geoipupdate_${version}_linux_386.rpm" \
-a "dist/geoipupdate_${version}_linux_amd64.rpm" \
"$tag"
make clean BUILDDIR=.

0 comments on commit 7c066d8

Please sign in to comment.