| Crates.io | cargo-deliver |
| lib.rs | cargo-deliver |
| version | 0.2.0 |
| created_at | 2018-01-21 14:01:35.622687+00 |
| updated_at | 2018-01-21 14:01:35.622687+00 |
| description | Run goreleaser from Rust to deploy your Rust binaries to Github/Artifactory/Dockerhub |
| homepage | https://github.com/mre/cargo-deliver |
| repository | https://github.com/mre/cargo-deliver |
| max_upload_size | |
| id | 47658 |
| size | 7,012 |
This will use goreleaser to deploy your Rust binaries to Github/Artifactory/Dockerhub. It's still experimental and will only work once/if Rust support gets added to goreleaser .
cargo install cargo-deliver
To upgrade:
cargo install --force cargo-deliver
Or clone and build with $ cargo build --release then place in your $PATH.
.goreleaser.yml to your project. Here is an example:rust:
- target:
- x86_64-apple-darwin
binary: cargo-ship
# Archive customization
archive:
format: tar.gz
replacements:
amd64: 64-bit
darwin: macOS
linux: Linux
You can get a list of all possible targets with
rustc --print target-list
git tag -a "v0.1.0"
Next, you need to export a GITHUB_TOKEN environment variable, which should contain a GitHub token with the repo scope selected. It will be used to deploy releases to your GitHub repository. Create a token here.
Run the following command
cargo deliver