Skip to content

Commit

Permalink
chore: release script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dreadl0ck committed Aug 22, 2021
1 parent 3eaedc9 commit fb5eb66
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist-linux
analyze/dnn/models/
analyze/dnn/checkpoints/
test-params/
Expand Down Expand Up @@ -34,4 +35,4 @@ FlameGraph
Dockerfile
bin/
cover.out
deploy.sh
deploy.sh
10 changes: 3 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ builds:
id: netcap_macOS_nodpi
goos:
- darwin
goarch:
- amd64
ldflags:
- ""
flags:
Expand Down Expand Up @@ -57,8 +59,6 @@ archives:
- types/rust/*
- types/swift/*
- types/netcap.pb.go
# Disables the binary count check - TODO add multiple archives
#allow_different_binary_count: true
- id: "netcap_macOS_nodpi"
builds: [ 'netcap_macOS_nodpi' ]
files:
Expand All @@ -72,8 +72,6 @@ archives:
- types/rust/*
- types/swift/*
- types/netcap.pb.go
# Disables the binary count check - TODO add multiple archives
#allow_different_binary_count: true
- id: "netcap_nodpi"
builds: [ 'netcap_nodpi' ]
files:
Expand All @@ -87,10 +85,8 @@ archives:
- types/rust/*
- types/swift/*
- types/netcap.pb.go
# Disables the binary count check - TODO add multiple archives
#allow_different_binary_count: true

#nfpms:
#nfpms:
# -
# id: "netcap"
# builds: ['netcap']
Expand Down
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.2"

// Commit is the git commit id of the current version.
var Commit = "2f7bd16d983b872a82af2ec8f6e14bef297830b8"
var Commit = "3eaedc9ad368f2497ef0237b155d9621b58d8d9e"
15 changes: 14 additions & 1 deletion zeus/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ language: bash
# globals for all commands
globals:
# NETCAP version
VERSION: 0.6.2
VERSION: 0.6.3

# command data
commands:
Expand Down Expand Up @@ -108,8 +108,21 @@ commands:
- gen-proto-release
- build-linux
- build-linux-nodpi
- run-goreleaser
- update-release-assets
exec: echo "release v$VERSION done"

run-goreleaser:
exec: goreleaser check && goreleaser release --skip-validate

update-release-assets:
exec: |
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
# run a test release
release-test:
description: test run to release a new version
Expand Down

0 comments on commit fb5eb66

Please sign in to comment.