Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary distribution: Use Github API to get OLD_VERSION #23

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

praveenperera
Copy link
Contributor

@praveenperera praveenperera commented Sep 25, 2023

This makes the release mechanism a little less brittle, uses the Github API to get the last released version, instead of the last commit. Also added a condition for handling no releases, so merging his will release 0.1.0.

Tested here: https://github.com/praveenperera/htmx-lsp/releases/tag/0.1.0

I usually release rust binaries a little differently, I use cross to release for more targets and upload the tar.gz (linux, macOS) or .zip (windows) instead of the binary directly. Which makes for slightly smaller downloads.

See: https://github.com/avencera/rustywind/releases/tag/v0.19.0

If you prefer that way I can just bring the GitHub action over that I used there.

@praveenperera praveenperera changed the title Use Github API to get OLD_VERSION Binary distribution: Use Github API to get OLD_VERSION Sep 25, 2023
@ThePrimeagen
Copy link
Owner

let me get #22 in first, then we will go to this one. sounds good?

@praveenperera
Copy link
Contributor Author

praveenperera commented Sep 26, 2023

Sounds good, CI should be passing now

@ThePrimeagen ThePrimeagen merged commit d06b367 into ThePrimeagen:master Sep 27, 2023
1 check passed
@praveenperera praveenperera deleted the fix-release branch September 27, 2023 19:06
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.

None yet

2 participants