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