Skip to content

Commit 194437c

Browse files
committed
changes for new tag r1.0.0
1 parent bd42da4 commit 194437c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
permissions:
1717
contents: write
1818

19+
1920
steps:
2021

2122
# debug
@@ -48,7 +49,14 @@ jobs:
4849
go mod tidy
4950
go build -o httping -ldflags "-X main.Version=${GITHUB_REF_NAME} -X main.BuiltBy=github-actions" main.go
5051
mv httping builds/
51-
ls -lisa builds/
52+
ls -lisa builds
53+
54+
- name: go test
55+
id: test
56+
run: |
57+
go test -v
58+
cd ./cmd/httping/
59+
go test -v
5260
5361
- run: git version
5462
- run: git branch
@@ -59,7 +67,7 @@ jobs:
5967
run: |
6068
currentTag=${GITHUB_REF_NAME}
6169
major_minor=$(echo "$currentTag" | cut -d'.' -f1-2)
62-
patch=$currentTag
70+
patch=$(echo "$currentTag" | cut -d'.' -f3)
6371
# avoid empty patch number
6472
[ -n "$patch" ] && ((patch--)) || patch=".x"
6573
previousTag="${major_minor}.${patch}"
@@ -86,8 +94,10 @@ jobs:
8694
with:
8795
name: ${{ env.GITHUB_REF_NAME }}
8896
tag: ${{ env.GITHUB_REF_NAME }}
89-
artifacts: ./cmd/hashy/builds/httping
97+
artifacts: ./cmd/httping/builds/httping
9098
bodyFile: "body.log"
9199
token: ${{ secrets.GITHUB_TOKEN }}
92100
removeArtifacts: true
93101
allowUpdates: "true"
102+
103+

0 commit comments

Comments
 (0)