Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaya-Sem committed Sep 30, 2024
1 parent c87ec56 commit 1216d08
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
GOOS=darwin GOARCH=amd64 go build -o dist/commandtrein-macos
GOOS=windows GOARCH=amd64 go build -o dist/commandtrein-windows
- name: Extract Version from main.go
id: get_version
run: |
VERSION=$(grep -oP '(?<=Version = ")[^"]*' main.go)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Get Latest Commit Info
id: commit_info
run: |
Expand All @@ -38,8 +44,8 @@ jobs:
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ env.COMMIT_SHA }}
release_name: Release ${{ env.COMMIT_SHA }}
tag_name: ${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
draft: false
prerelease: false
env:
Expand Down

0 comments on commit 1216d08

Please sign in to comment.