@@ -24,22 +24,22 @@ jobs:
2424 uses : iExecBlockchainComputing/github-actions-workflows/.github/workflows/rust-build.yml@main
2525 with :
2626 rust-version : ' stable'
27- build-profile : ' release'
27+ build-target : ' release'
2828 run-audit : true
2929 enable-cache : true
3030 upload-artifact : true
3131 artifact-name : my-crate
3232 artifact-path : target/release/my-crate
3333 secrets :
34- CRATES_IO_TOKEN : ${{ secrets.CRATES_IO_TOKEN }}
34+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
3535` ` `
3636
3737## Inputs
3838
3939| Name | Description | Default | Required |
4040| ------------------- | ------------------------------------------------------------ | --------- | -------- |
4141| ` rust-version` | Rust version to use | `stable` | No |
42- | `build-profile` | Cargo profile to use for building (`debug`, `release`, etc.) | `release` | No |
42+ | `build-target` | Cargo profile to use for building (`debug`, `release`, etc.) | `release` | No |
4343| `run-audit` | Run `cargo audit` for security vulnerabilities | `true` | No |
4444| `enable-cache` | Enable caching of dependencies | `true` | No |
4545| `upload-artifact` | Upload a build artifact after building | `false` | No |
4949
5050# # Secrets
5151
52- | Name | Description | Required |
53- | ----------------- | --------------------------------------- | ------------------------------------- |
54- | `CRATES_IO_TOKEN ` | crates.io API token for `cargo publish` | Only if `publish-crates-io` is `true` |
52+ | Name | Description | Required |
53+ | ----------------------- | --------------------------------------- | ------------------------------------- |
54+ | `CARGO_REGISTRY_TOKEN ` | crates.io API token for `cargo publish` | Only if `publish-crates-io` is `true` |
5555
5656# # Examples
5757
@@ -73,14 +73,14 @@ jobs:
7373 run-audit: false
7474` ` `
7575
76- # ## Use Debug Profile
76+ # ## Use Debug Target
7777
7878` ` ` yaml
7979jobs:
8080 build-and-test:
8181 uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/rust-build.yml@main
8282 with:
83- build-profile : 'debug'
83+ build-target : 'debug'
8484` ` `
8585
8686# ## Upload Artifact After Build
9595 artifact-path: target/release/my-crate
9696` ` `
9797
98- # ## Publish to crates.io (requires CRATES_IO_TOKEN )
98+ # ## Publish to crates.io (requires CARGO_REGISTRY_TOKEN )
9999
100100` ` ` yaml
101101jobs:
@@ -104,5 +104,5 @@ jobs:
104104 with:
105105 publish-crates-io: true
106106 secrets:
107- CRATES_IO_TOKEN : ${{ secrets.CRATES_IO_TOKEN }}
107+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
108108` ` `
0 commit comments