diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 4f932c5..43ab84f 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -18,6 +18,9 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Copy README.md + run: | + cp ./README.md ./dify-client/README.md - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Run release-plz diff --git a/dify-client/README.md b/dify-client/README.md deleted file mode 100644 index e4947cc..0000000 --- a/dify-client/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# Dify Client - -The Dify Client is a Rust library for interacting with the Dify service. It provides a convenient way to integrate Dify functionality into your Rust applications. - -## Installation - -To add `dify-client` to your package, add the following to your `Cargo.toml`: - -```toml -[dependencies] -dify-client = "0.1" -``` - -## Test - -To run the tests, you need to set the `DIFY_API_KEY` and `DIFY_BASE_URL` environment variables. - -```bash -export DIFY_API_KEY=your_api_key -export DIFY_BASE_URL=https://api.dify.io -``` - -Then you can run the tests with: - -```sh -cargo test -# cargo test -- --nocapture -# cargo test test_feedback_message -- --nocapture -``` - -## Docs - -To generate the documentation, run: - -```sh -# cargo clean --doc -cargo doc --no-deps --lib --document-private-items --open -```