Skip to content

Commit

Permalink
Experimenting with a simple CI target
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed Jul 8, 2024
1 parent caa43be commit 9705dec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- add-release-ci
- 'v[0-9]+\.[0-9]+\.[0-9]+'

jobs:
build-and-upload:
Expand Down Expand Up @@ -35,6 +35,9 @@ jobs:
- 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 }}
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[workspace]
members = ["instruct-macros-types", "instruct-macros", "instructor"]

resolver = "2"
2 changes: 1 addition & 1 deletion instruct-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
instruct-macros-types = { path = "../instruct-macros-types", version = "0.1.0" }
instruct-macros-types = { path = "../instruct-macros-types", version = "0.*" }
proc-macro2 = "1.0.86"

[dependencies.syn]
Expand Down
5 changes: 2 additions & 3 deletions instructor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[package]
name = "instructor-ai"
version = "0.1.7"
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,11 +12,11 @@ license = "MIT OR Apache-2.0"
changelog = "CHANGELOG.md"

[dependencies]
instruct-macros = { path = "../instruct-macros" }
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" }

[lib]
name = "instructor_ai"
Expand Down

0 comments on commit 9705dec

Please sign in to comment.