Skip to content

Commit

Permalink
Attempt #2 of fixing release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ksamirdev committed Jul 6, 2024
1 parent e42829f commit ef6cc41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ jobs:
GOOS=${GOOSARCH%/*}
GOARCH=${GOOSARCH#*/}
BINARY_NAME=${{github.repository}}-$GOOS-$GOARCH
ENTRY_FILE=${{github.repository}}/cmd/main.go
echo "ENTRY=$ENTRY_FILE" >> $GITHUB_ENV
echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_ENV
echo "GOOS=$GOOS" >> $GITHUB_ENV
echo "GOARCH=$GOARCH" >> $GITHUB_ENV
- name: Build
run: go build -o "$BINARY_NAME" ./cmd/go-lrc/main.go -v
run: go build -o "$BINARY_NAME" $ENTRY -v
- name: Release Notes
run: git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
- name: Release with Notes
Expand Down

0 comments on commit ef6cc41

Please sign in to comment.