Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed up the version #25

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
17 changes: 0 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Get the release version from the tag
shell: bash
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true

- name: Install Rust
run: rustup target add ${{ matrix.target }}

- name: Bump version to the tag
run: cargo workspaces version $VERSION --all --no-git-push --no-git-tag --yes

- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Publishing a new version

When looking to publish a new version, we can bump all the individual versions of the crates with

```
cargo workspaces version patch --all --no-git-push --no-git-tag --allow-branch "*"
```

This ensures that the workspaces have the right versioning
3 changes: 2 additions & 1 deletion instructor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "instructor-ai"
version = "0.1.8"
edition = "2021"
authors = ["Ivan Leo <[email protected]>"]
description = "instructor-ai is a simple crate that allows for users to do validated structured outputs"
Expand All @@ -13,10 +14,10 @@ changelog = "CHANGELOG.md"

[dependencies]
instruct-macros = { path = "../instruct-macros", version = "0.*" }
instruct-macros-types = { path = "../instruct-macros-types", version = "0.*" }
openai-api-rs = "4.1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
instruct-macros-types = { path = "../instruct-macros-types", version = "0.*" }

[lib]
name = "instructor_ai"
Expand Down
Loading