Skip to content

Commit

Permalink
changes for new tag r1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rnemeth90 committed Feb 10, 2023
1 parent bd42da4 commit 194437c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
permissions:
contents: write


steps:

# debug
Expand Down Expand Up @@ -48,7 +49,14 @@ jobs:
go mod tidy
go build -o httping -ldflags "-X main.Version=${GITHUB_REF_NAME} -X main.BuiltBy=github-actions" main.go
mv httping builds/
ls -lisa builds/
ls -lisa builds
- name: go test
id: test
run: |
go test -v
cd ./cmd/httping/
go test -v
- run: git version
- run: git branch
Expand All @@ -59,7 +67,7 @@ jobs:
run: |
currentTag=${GITHUB_REF_NAME}
major_minor=$(echo "$currentTag" | cut -d'.' -f1-2)
patch=$currentTag
patch=$(echo "$currentTag" | cut -d'.' -f3)
# avoid empty patch number
[ -n "$patch" ] && ((patch--)) || patch=".x"
previousTag="${major_minor}.${patch}"
Expand All @@ -86,8 +94,10 @@ jobs:
with:
name: ${{ env.GITHUB_REF_NAME }}
tag: ${{ env.GITHUB_REF_NAME }}
artifacts: ./cmd/hashy/builds/httping
artifacts: ./cmd/httping/builds/httping
bodyFile: "body.log"
token: ${{ secrets.GITHUB_TOKEN }}
removeArtifacts: true
allowUpdates: "true"


0 comments on commit 194437c

Please sign in to comment.