mirror of
https://github.com/MedzikUser/imgurs
synced 2024-08-15 00:03:19 +00:00
ci: delete publish to crates.io
This commit is contained in:
parent
2ac3424338
commit
30a79bc8bb
4 changed files with 3 additions and 24 deletions
22
.github/workflows/build-release-binaries.yml
vendored
22
.github/workflows/build-release-binaries.yml
vendored
|
@ -131,25 +131,3 @@ jobs:
|
|||
asset_name: imgurs-$tag-${{ matrix.release_name }}
|
||||
body: ${{ steps.changelog_reader.outputs.log_entry }}
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
crates:
|
||||
name: Publish to crates.io
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: Publish to crates.io
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: publish
|
||||
args: --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
|
|
|
@ -29,7 +29,7 @@ simple_logger = "2.3"
|
|||
toml = "0.5"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
tokio = { version = "1.21", features = ["macros", "rt-multi-thread"] }
|
||||
imgurs = { path = "..", features = ["full"] }
|
||||
imgurs = { path = "..", version = "0.9.0", features = ["full"] }
|
||||
|
||||
[target.'cfg(not(all(unix, not(any(target_os="macos", target_os="android", target_os="emscripten")))))'.dependencies]
|
||||
arboard = "2.1"
|
||||
|
|
1
imgurs-cli/config.toml
Symbolic link
1
imgurs-cli/config.toml
Symbolic link
|
@ -0,0 +1 @@
|
|||
../config.toml
|
|
@ -30,7 +30,7 @@ pub fn parse() -> Config {
|
|||
if value.to_lowercase() != "n\n" {
|
||||
warn!("Parse toml config error: {err}! Creating config file...");
|
||||
|
||||
let default_config = include_str!(concat!("../../../config.toml"));
|
||||
let default_config = include_str!(concat!("../../config.toml"));
|
||||
|
||||
let sys_config_dir = config_dir().expect("find config dir");
|
||||
let config_dir = format!("{}{CONFIG_DIR}", sys_config_dir.to_string_lossy());
|
||||
|
|
Loading…
Reference in a new issue