From ecdc38f5b7f2e585f57582415c98912dfcd7acbd Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Fri, 11 Mar 2022 00:55:15 +0400
Subject: [PATCH] Added crate publishing job in CI. (#58)

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 .github/workflows/release.yml | 16 +++++++++++++++-
 Cargo.toml                    | 13 +++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6afa048..3ebb21f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -126,6 +126,20 @@ jobs:
           file: deploy/Dockerfile
           tags: s3rius/rustus:latest,s3rius/rustus:${{env.APP_VERSION}}
 
+  publish_crate:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Install stable toolchain
+        uses: actions-rs/toolchain@v1
+        with:
+          toolchain: stable
+          override: true
+      - uses: katyo/publish-crates@v1
+        with:
+          registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
+
   docker_build_alpine:
     runs-on: ubuntu-latest
     needs:
@@ -152,4 +166,4 @@ jobs:
           file: deploy/alpine.Dockerfile
           tags: s3rius/rustus:${{env.APP_VERSION}}-alpine
           build-args: |
-            app_version=${{env.APP_VERSION}}
\ No newline at end of file
+            app_version=${{env.APP_VERSION}}
diff --git a/Cargo.toml b/Cargo.toml
index 4211741..7464294 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,6 +3,19 @@ name = "rustus"
 version = "0.4.7"
 edition = "2021"
 description = "TUS protocol implementation written in Rust."
+keywords = [
+    "tus",
+    "server",
+    "actix-web",
+]
+license-file = "LICENSE"
+authors = [
+    "Pavel Kirilin <win10@list.ru>",
+    "Maxim Naumov <overlordin777@gmail.com>",
+]
+homepage = "https://github.com/s3rius/rustus"
+readme = "README.md"
+
 
 [[bin]]
 name = "rustus"
-- 
GitLab