File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 6363 git config --global --add safe.directory "$GITHUB_WORKSPACE"
6464 git config user.email ${{ github.actor }}[email protected] 6565 git config user.name ${{ github.actor }}
66+
6667 - name : Run Lint
6768 run : |
6869 task lint
Original file line number Diff line number Diff line change 6767 - name : release library
6868 run : |
6969 task tag GIT_TAG=${SEMVER} REVISION=$GITHUB_SHA
70- - name : release binary
70+ - name : build binary
7171 run : |
7272 task bin REVISION=$GITHUB_SHA GIT_TAG=${SEMVER}
73- task release REVISION=$GITHUB_SHA GIT_TAG=${SEMVER} PAT=${{ secrets.GITHUB_TOKEN }}
73+ - name : Release binary
74+ uses : softprops/action-gh-release@v2
75+ with :
76+ tag_name : ${{ needs.set-version.outputs.semVer }}
77+ # TODO: add additional info to the release
78+ generate_release_notes : true
79+ token : ${{ secrets.GITHUB_TOKEN }}
80+ files : ./dist/*
81+ prerelease : false
Original file line number Diff line number Diff line change 3535 cmds :
3636 - |
3737 set -exo pipefail
38- go test ./... -v -buildvcs=false -mod=readonly -race -coverprofile=.coverage/out > .coverage/unit ; cat .coverage/unit
38+ go test ./... -v -buildvcs=false -mod=readonly -race -coverprofile=.coverage/out | tee .coverage/unit
3939
4040 install :
4141 desc : Install dependencies
8787 - for : { var: GO_ARCHS, as: GO_TARGET_ARCH }
8888 cmd : |
8989 GOOS={{.GO_TARGET_ARCH}} CGO_ENABLED=0 go build -mod=readonly -buildvcs=false {{.LDFLAGS}} -o ./dist/configmanager-{{.GO_TARGET_ARCH}} ./cmd
90+ - for : { var: GO_ARCHS, as: GO_TARGET_ARCH }
91+ cmd : |
92+ GOOS={{.GO_TARGET_ARCH}} GOARCH=arm64 CGO_ENABLED=0 go build -mod=readonly -buildvcs=false {{.LDFLAGS}} -o ./dist/configmanager-{{.GO_TARGET_ARCH}}-arm64 ./cmd
9093 vars :
9194 # LDFLAGS: -ldflags="-s -w -X \"github.com/dnitsch/async-api-generator/cmd/async-api-gen-doc.Version=${VERSION}\" -X \"github.com/dnitsch/async-api-generator/cmd/async-api-gen-doc.Revision={{.REVISION}}\" -extldflags -static"
9295 LDFLAGS : -ldflags="-s -w -X \"github.com/DevLabFoundry/configmanager/cmd/configmanager.Version=${VERSION}\" -X \"github.com/DevLabFoundry/configmanager/cmd/configmanager.Revision={{.REVISION}}\" -extldflags -static"
You can’t perform that action at this time.
0 commit comments