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

add logic to build and publish a tarball on release #1543

Merged
merged 2 commits into from
Jul 17, 2020

Conversation

thelamer
Copy link
Contributor

@thelamer thelamer commented Jul 9, 2020

I wanted to consume this software downstream for a Docker image, but the build process is a bit heavy.

This logic pushes a tarball to a release when published.

You can see an example on my fork here:
https://github.com/thelamer/ipfs-webui/releases/tag/v2.10.2
https://github.com/thelamer/ipfs-webui/runs/855791405?check_suite_focus=true

You don't need to setup anything on the repo, merging this will push tarballs for all subsequent releases made after merge.

I understand the value of pushing stuff like this to IPFS but in the case of software ingestion from your repo, the whole world conventionally hits the latest release api on github and pulls in on new release tags. Having this build asset transparently built in Github greatly simplifies this process.

Let me know if you have any questions.

@jessicaschilling
Copy link
Contributor

@olizilla -- may I send this your way to look over or send along? Thanks!

Copy link
Member

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

This is rad, thank you @thelamer. Just a minor change to pin the version of the github action and we can land this!

tar -czf ipfs-webui.tar.gz build/*

- name: Copy build-artifacts to Release
uses: skx/github-action-publish-binaries@master
Copy link
Member

Choose a reason for hiding this comment

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

Please pin skx/github-action-publish-binaries to a specific version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry missed this comment pinned to @release-0.14

Copy link
Member

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

Thanks!

@olizilla olizilla merged commit 6adc355 into ipfs:master Jul 17, 2020
@lidel lidel mentioned this pull request Sep 4, 2020
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.

3 participants