From 99eef2ec5876bc4ef50ce2b549ad69dc37cf2e74 Mon Sep 17 00:00:00 2001 From: Marc Seiler Date: Thu, 8 Oct 2026 14:48:22 -0400 Subject: [PATCH 1/2] ci: ignore dtolnay/rust-toolchain in dependabot Dependabot treats the toolchain ref as an action version and bumps it to a nonexistent tag (e.g. 1.99.0 -> 1.120.0), which breaks the install step. Ignore that dependency so the bogus PRs stop being opened. --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7fbe9f8..e32ef8b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,3 +17,7 @@ updates: github-actions: patterns: - "*" + ignore: + # The ref is a Rust toolchain version, not an action version. Dependabot + # otherwise "bumps" it to a nonexistent tag (e.g. 1.99.0 -> 1.120.0). + - dependency-name: "dtolnay/rust-toolchain" From 99b12b7b07179a871e276b02908b7cf95d8ada1d Mon Sep 17 00:00:00 2001 From: Marc Seiler Date: Thu, 8 Oct 2026 15:04:39 -0400 Subject: [PATCH 2/2] ci: publish crate to crates.io on release Add a publish job to the Release workflow that runs `cargo publish` using the CARGO_REGISTRY_TOKEN secret when a v* tag is pushed. Also fix the crate metadata (repository URL, keywords, categories) and exclude non-crate files from the published package. --- .github/workflows/release.yml | 13 +++++++++++++ Cargo.toml | 17 ++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d91005..b514afe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,3 +71,16 @@ jobs: uses: softprops/action-gh-release@v2 with: files: gsbt.schema.json + + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') + steps: + - uses: actions/checkout@v6 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@1.99.0 + - name: Publish crate + run: cargo publish --locked + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 4a25584..53f1c3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,24 @@ edition = "2021" rust-version = "1.85" description = "Gameserver Backup Tool - back up game server files via FTP, SFTP, and Nitrado" license = "MIT" -repository = "https://github.com/devtheops/gameserver-backup-tool" +repository = "https://github.com/DEVtheOPS/gsbt" readme = "README.md" default-run = "gsbt" +keywords = ["backup", "gameserver", "ftp", "sftp", "cli"] +categories = ["command-line-utilities", "filesystem"] +exclude = [ + "/.github", + "/docs", + "/.opencode", + "/Taskfile.yml", + "/.tool-versions", + "/rust-toolchain.toml", + "/AGENTS.md", + "/CLAUDE.md", + "/CONTRIBUTING.md", + "/SECURITY.md", + "/.editorconfig", +] [lib] name = "gsbt"