Skip to content

Commit

Permalink
chore: upload assets manually to github release page
Browse files Browse the repository at this point in the history
  • Loading branch information
dreadl0ck committed Aug 22, 2021
1 parent daa5b43 commit b0c210f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ package netcap
var Version = "v0.6.3"

// Commit is the git commit id of the current version.
var Commit = "fb5eb6605cb56b3d45de3f31552d4a9643f7f37e"
var Commit = "daa5b43f538b3996ab905ea34e045c8da6dd041a"
25 changes: 23 additions & 2 deletions zeus/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,29 @@ commands:
for f in dist-linux/*.tar.gz; do
gh release upload --clobber v$VERSION $f
done
cp dist-linux/checksums.txt dist-linux/checksums-linux.txt
gh release upload --clobber v$VERSION dist-linux/checksums-linux.txt
# create correct darwin archives
# TODO: fix goreleaser config
tar -cvf netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz dist/netcap_macOS_nodpi_darwin_amd64
mv netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz dist
tar -cvf netcap_v${VERSION}_darwin_amd64.tar.gz dist/netcap_darwin_amd64
mv netcap_v${VERSION}_darwin_amd64.tar.gz dist
# upload
gh release upload --clobber v$VERSION dist/netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz
gh release upload --clobber v$VERSION dist/netcap_${VERSION}_darwin_amd64.tar.gz
# update checksums file
cd dist
shasum -a 256 netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz >> ../dist-linux/checksums.txt
shasum -a 256 netcap_${VERSION}_darwin_amd64.tar.gz >> ../dist-linux/checksums.txt
cd ..
# append hash of windows build to final checksum file
head -n 1 dist/checksums.txt >> dist-linux/checksums.txt
# sync
gh release upload --clobber v$VERSION dist-linux/checksums.txt
# run a test release
release-test:
Expand Down

0 comments on commit b0c210f

Please sign in to comment.