dt new -t github-workflow-rust-cli
An official dev template that configures your cli's entire github workflow in rust
After installing the dt cli enter the root folder of your cli, example:
cd projects/cli-example
Then use this template through the dt cli:
dt new -t github-workflow-rust-cli
TOKEN_GITHUB
- master
in line 5 column 7 by - {your-default-branch-name}
(replace your-default-branch-name
by your default branch name)dt
by the bin name of your cli, possibly it is the name of the name
field in Cargo.toml
but if you are in doubt run cargo build
go to the target/debug
folder and see the name of the executable that is thereRelease
will be triggered, which will build your project, create a new release and add the file binary in zip there.Cargo.toml
, Cargo.lock
, **.rs
a testing process will be run, this includes the commands: cargo fmt -- --check
, cargo check
, cargo clippy
. you can also open the file .github/workflows/ci.yml
in line 39 column 11 and add a new version of rust, and then it will run all that in all the versions that are there!.
├── .github
│ └── workflows
│ ├── ci.yml
│ ├── create_new_tag.yml
│ └── release.yml
│ {the-rest-of-the-files-in-your-cli}...