fix-wf #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
workflow_call: | |
push: | |
branches: | |
- "pull-request/[0-9]+" | |
jobs: | |
rust-publish: | |
runs-on: ubuntu-latest | |
container: | |
image: rapidsai/ci-conda:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check if release build | |
id: check_release | |
run: | | |
if rapids-is-release-build; then | |
echo "is_release=true" >> $GITHUB_OUTPUT | |
else | |
echo "is_release=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Install Rust | |
if: steps.check_release.outputs.is_release == 'true' | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH | |
- name: Publish to crates.io | |
if: steps.check_release.outputs.is_release == 'true' | |
working-directory: ./rust | |
run: | | |
cargo publish --token ${CARGO_REGISTRY_TOKEN} --package jawe-cuvs | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.GPUTESTER_CRATES_TOKEN }} |