Files
codewhale/.github/workflows/crates-publish.yml
T
Hunter Bown 7b91169017 refactor: move source files into workspace crates
- Move src/* into crates/tui/src/ to create a proper workspace structure
- Add .claude/ and .trimtab/ directories for Trimtab closed-loop workflow
- Add DEPENDENCY_GRAPH.md and update documentation
- Update Cargo.toml files to reflect new crate dependencies
- Update CI workflows and npm package scripts
- All tests pass, release build works
2026-03-11 20:00:38 -05:00

28 lines
804 B
YAML

name: Publish to Crates.io
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
name: Publish workspace crates to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Verify version matches tag
if: github.event_name == 'release'
run: ./scripts/release/verify-workspace-version.sh "${GITHUB_REF#refs/tags/v}"
- name: Preflight workspace crate publishes in workspace order
run: ./scripts/release/publish-crates.sh dry-run
- name: Publish crates.io packages in workspace order
run: ./scripts/release/publish-crates.sh publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}