Skip to content

Commit

Permalink
Fixed up the version (#25)
Browse files Browse the repository at this point in the history
Added a Contributing.md readme and some CI fixes
  • Loading branch information
ivanleomk authored Jul 8, 2024
1 parent 36f7ace commit a07387b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
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

0 comments on commit a07387b

Please sign in to comment.