Skip to content

Commit

Permalink
ci: publish to crates
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed May 15, 2024
1 parent fe71d9b commit 7708533
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions ci/tasks/publish-to-crates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

pushd repo

cat <<EOF | cargo login
${CRATES_API_TOKEN}
EOF

cargo publish -p cala-cel-parser --all-features --no-verify
cargo publish -p cala-cel-interpreter --all-features --no-verify
cargo publish -p cala-core-types --all-features --no-verify
cargo publish -p cala-ledger-outbox-client --all-features --no-verify
cargo publish -p cala-ledger --all-features --no-verify
cargo publish -p cala-server --all-features --no-verify
2 changes: 2 additions & 0 deletions ci/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ git_version_branch: version
gh_org: GaloyMoney
gh_repository: cala

crates_api_token: ((crates.token))

slack_channel: cala-github
slack_username: concourse
slack_webhook_url: ((addons-slack.api_url))
Expand Down

0 comments on commit 7708533

Please sign in to comment.