Skip to content

Extract binaries to releases#56

Merged
Vladyslav-Kuksiuk merged 13 commits into
masterfrom
extract-binaries-to-releases
Jun 22, 2026
Merged

Extract binaries to releases#56
Vladyslav-Kuksiuk merged 13 commits into
masterfrom
extract-binaries-to-releases

Conversation

@Vladyslav-Kuksiuk

Copy link
Copy Markdown
Collaborator

This PR moves binaries storing to the Releases instead of version control.

From now on, the version tracker has been moved to the VERSION file instead of main.go.

If the version is not changed, merging the PR would update the binaries for the previous release.

Resolves this issue.

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk self-assigned this Jun 18, 2026
Base automatically changed from agents to master June 18, 2026 15:41
…t-binaries-to-releases

# Conflicts:
#	README.md
#	bin/embed-code-linux
#	bin/embed-code-macos
#	bin/embed-code-windows.exe
Comment thread .github/workflows/release-binaries.yml
Comment thread .github/workflows/release_binaries.yml Outdated
shell: bash
run: |
mkdir -p dist
GOOS=windows GOARCH=amd64 go build -trimpath -o dist/embed-code-windows.exe main.go

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's create bash script for it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need separate Bash script files for such tiny scripts of only 4–7 lines.

Comment thread .github/workflows/release_binaries.yml Outdated
Comment thread .github/workflows/release-binaries.yml
Comment thread .github/workflows/release-binaries.yml
Comment thread .github/workflows/release_binaries.yml Outdated
if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
git tag --force "$RELEASE_TAG" "$GITHUB_SHA"
git push origin "refs/tags/$RELEASE_TAG" --force
gh release edit "$RELEASE_TAG" \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if updating a release is a good idea. Maybe we should create a new release for every merge? Or set up a separate deployment branch so we don't clutter the releases with patches. It's just strange that a release action doesn't actually create a new release, but instead just updates the existing one; it seems to me like this is hidden behavior—and it's certainly not documented.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to force version updates, as we may have documentation or test changes that do not affect the app version. However, I agree that updating an existing release is not a good decision, so let's create a new release only when the version has been updated.

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk merged commit 849b01c into master Jun 22, 2026
3 checks passed
@Vladyslav-Kuksiuk Vladyslav-Kuksiuk deleted the extract-binaries-to-releases branch June 22, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move binaries to releases

2 participants