ci: delete publish to crates.io

pull/86/head
MedzikUser 9 months ago
parent 2ac3424338
commit 30a79bc8bb
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB

@ -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"

@ -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…
Cancel
Save