dropping bindings #38
Workflow file for this run
This file contains 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: Rust - Test & Publish Package | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
# if: ${{ github.ref == 'refs/heads/main' }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Build and Test | |
working-directory: toolchain | |
run: | | |
cargo build --package prompt-graph-core --package prompt-graph-exec --package chidori | |
cargo test --package prompt-graph-core --package prompt-graph-exec --package chidori | |
- name: Publish prompt-graph-core | |
working-directory: toolchain/prompt-graph-core | |
run: cargo publish | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
- name: Publish prompt-graph-exec | |
working-directory: toolchain/prompt-graph-exec | |
run: cargo publish | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
- name: Publish chidori | |
working-directory: toolchain/chidori | |
run: cargo publish | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |