Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/publish-df-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish Chainlink Data Feeds SDK Crate

on:
workflow_dispatch:
inputs:
version:
description: "Version to publish (e.g., 2.0.8)"
required: true

jobs:
publish:
runs-on: ubuntu-latest
environment: publish-cargo

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: develop

- name: Setup Rust
uses: dtolnay/[email protected]

Check failure on line 22 in .github/workflows/publish-df-sdk.yml

View workflow job for this annotation

GitHub Actions / Validate Workflow Changes

1. 1.90.0 is not a valid SHA reference (sha-ref / error) 2. No version comment found (version-comment / warning)

- name: Verify tag matches version
run: |
VERSION=$(grep '^version = "' sdk/chainlink-solana/Cargo.toml | cut -d '"' -f2)
TAG_VERSION=${{ github.event.inputs.version }}
if [ "$VERSION" != "$TAG_VERSION" ]; then
echo "Version mismatch: Cargo.toml ($VERSION) != expected version ($TAG_VERSION)"
exit 1
fi

- name: Publish chainlink-data-streams-sdk
run: |

Check failure on line 34 in .github/workflows/publish-df-sdk.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/publish-df-sdk.yml#L34

shellcheck reported issue in this script: SC2086:info:2:23: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/publish-df-sdk.yml:34:9: shellcheck reported issue in this script: SC2086:info:2:23: Double quote to prevent globbing and word splitting [shellcheck]
cd sdk/chainlink-solana
cargo publish --token ${CARGO_CHAINLINK_SOLANA_SDK}
if ! cargo owner --list | grep -q "github:smartcontractkit:RustCrates"; then
cargo owner --add github:smartcontractkit:RustCrates
fi
env:
CARGO_CHAINLINK_SOLANA_SDK: ${{ secrets.CARGO_CHAINLINK_SOLANA }}
Loading