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

Set up Travis to upload binary for every release #149

Merged
merged 1 commit into from
Oct 25, 2017

Conversation

matematikaadit
Copy link
Contributor

@matematikaadit matematikaadit commented Oct 23, 2017

  • Add deploy script
  • Set deployment option on .travis.yml

fix #76

Example of it in action
https://github.com/matematikaadit/fd/releases/tag/v5.0.0-rc2

It will upload:

  • fd-VERSION-i686-unknown-linux-gnu.tar.gz
  • fd-VERSION-i686-unknown-linux-musl.tar.gz
  • fd-VERSION-x86_64-apple-darwin.tar.gz
  • fd-VERSION-x86_64-unknown-linux-gnu.tar.gz
  • fd-VERSION-x86_64-unknown-linux-musl.tar.gz

With the content of the archive:

  • fd-VERSION-TARGET/
  • fd-VERSION-TARGET/LICENSE-APACHE
  • fd-VERSION-TARGET/LICENSE-MIT
  • fd-VERSION-TARGET/README.md
  • fd-VERSION-TARGET/autocomplete
  • fd-VERSION-TARGET/autocomplete/_fd
  • fd-VERSION-TARGET/autocomplete/fd.bash-completion
  • fd-VERSION-TARGET/autocomplete/fd.fish
  • fd-VERSION-TARGET/fd
  • fd-VERSION-TARGET/fd.1

- Add deploy script
- Set deployment option on `.travis.yml`

fix sharkdp#76
@matematikaadit
Copy link
Contributor Author

I should mentions that this commit is using secret key for my repo, and should be updated accordingly. Instruction on how to update are included in the comments:

  # NOTE updating the `api_key.secure`
  # - go to: https://github.com/settings/tokens/new
  # - generate new token using `public_repo` scope
  # - encrypt it using: `travis encrypt API_KEY_HERE`
  # - paste the output below
  api_key:
    secure: ...

@sharkdp
Copy link
Owner

sharkdp commented Oct 25, 2017

Thank you very much! This is fantastic and will save us a lot of time.

I'll update the secret key after merging this.

@sharkdp sharkdp merged commit dbf1ba8 into sharkdp:master Oct 25, 2017
@matematikaadit matematikaadit deleted the travis-deploy branch October 26, 2017 02:39
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.

Set up Travis to upload binaries for every release
2 participants