Skip to content

Commit

Permalink
chore: fix buildVer & change artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
Bpazy committed Aug 20, 2021
1 parent 9392762 commit ba9d20a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fi
- name: Build the artifacts
run: make
run: make NAME=xraysub

- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
BINDIR=bin
VERSION=$(shell git describe --tags || echo "unknownversion")
ifdef NAME
FULLNAME=$(NAME)
FULLNAME=$(NAME)-$@
else
FULLNAME=xraysub-$@-$(VERSION)
endif
LDFLAGS="-s -w -X github.com/Bpazy/xraysub.buildVer=${VERSION}"
LDFLAGS="-s -w -X github.com/Bpazy/xraysub/cmd.buildVer=${VERSION}"
GOBUILD=go build -ldflags=${LDFLAGS}
CMDPATH=.
export GOPROXY=https://mirrors.aliyun.com/goproxy/
Expand Down

0 comments on commit ba9d20a

Please sign in to comment.