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

upload launcher2 to github release #886

Closed
wants to merge 1 commit into from

Conversation

featheredtoast
Copy link
Member

@featheredtoast featheredtoast commented Nov 8, 2024

create release on tag push of type v*.*.*

uploads both tar.gz and md5.

on tag creation EG, v2.0.0 this github action will:

  • create a release of the same name -- v2.0.0
  • Upload gzipped binary assets for each OS/arch, along with their md5 hashes

This does not use goreleaser, or go-release-action. Creation is simple with setup go, and compilation in the shell. It then uses github cli to upload the release assets.

Comment on lines 5 to 6
tags:
- "v*.*.*"
Copy link
Contributor

@tgxworld tgxworld Nov 11, 2024

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 should be using tags here to push out a release. This repository contains more than just code for launcher so a git tag would make little sense for the discourse_docker related stuff. Are we able to use some sort of version file here so that a new release is created when the version in the file is bumped?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure let me update to watch for that 👍

Copy link
Member Author

@featheredtoast featheredtoast Nov 12, 2024

Choose a reason for hiding this comment

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

So, short answer no it's not going to work exactly as you requested. But I've updated it so we push assets to a single release.

Github releases require a git tag, and if we don't want to provide one, we need to create a dummy tag for the release to pin to, and create a single launcher release. We can then overwrite assets within that release, and that single release becomes our go-to 'latest' release for the assets. Will that be sufficient?

Do not use tagged releases. Upload assets to a static release named launcher2.
@featheredtoast
Copy link
Member Author

Updated so we're using GH CLI to upload release assets to a single static release instead of creating and uploading on a tag creation.

@featheredtoast featheredtoast changed the title upload launcher2 to github release on tag creation upload launcher2 to github release Nov 12, 2024
@featheredtoast
Copy link
Member Author

closing in favor of discourse/launcher#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants