From 7708533dd6879f1cead9013f49967073186540e3 Mon Sep 17 00:00:00 2001 From: sandipndev Date: Wed, 15 May 2024 15:24:41 +0530 Subject: [PATCH] ci: publish to crates --- ci/pipeline.yml | 15 +++++++++++++++ ci/tasks/publish-to-crates.sh | 16 ++++++++++++++++ ci/values.yml | 2 ++ 3 files changed, 33 insertions(+) create mode 100755 ci/tasks/publish-to-crates.sh diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 050e8bcc..37c74b48 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -106,6 +106,21 @@ jobs: - name: repo run: path: pipeline-tasks/ci/tasks/update-repo.sh + - task: publish-to-crates + config: + image_resource: #@ rust_task_image_config() + platform: linux + inputs: + - name: version + - name: pipeline-tasks + - name: repo + params: + CRATES_API_TOKEN: #@ data.values.crates_api_token + caches: + - path: cargo-home + - path: cargo-target-dir + run: + path: pipeline-tasks/ci/tasks/publish-to-crates.sh - in_parallel: - task: build-osx-release privileged: true diff --git a/ci/tasks/publish-to-crates.sh b/ci/tasks/publish-to-crates.sh new file mode 100755 index 00000000..b0996d2b --- /dev/null +++ b/ci/tasks/publish-to-crates.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +pushd repo + +cat <