diff --git a/.github/workflows/update-spec-for-docs.yml b/.github/workflows/update-spec-for-docs.yml index 16e29fd4..5fdf7d33 100644 --- a/.github/workflows/update-spec-for-docs.yml +++ b/.github/workflows/update-spec-for-docs.yml @@ -15,6 +15,13 @@ jobs: name: update-spec runs-on: ubuntu-latest steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + # required + app-id: ${{ secrets.GH_ORG_APP_ID }} + private-key: ${{ secrets.GH_ORG_APP_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} - uses: actions/checkout@v4 - name: Install latest stable/nightly shell: bash @@ -50,7 +57,7 @@ jobs: with: repository: 'kittycad/website' path: 'website' - token: ${{secrets.GLOBAL_PAT}} + token: ${{ steps.app-token.outputs.token }} - name: move json patch file to docs shell: bash run: | @@ -75,6 +82,6 @@ jobs: --head "$NEW_BRANCH" \ --base main || true env: - GITHUB_TOKEN: ${{secrets.GLOBAL_PAT}} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} diff --git a/Cargo.lock b/Cargo.lock index ed4eb071..3aaa2438 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -961,7 +961,7 @@ dependencies = [ [[package]] name = "kittycad" -version = "0.2.45" +version = "0.2.46" dependencies = [ "anyhow", "async-trait", diff --git a/VERSION.txt b/VERSION.txt index 16c9e92a..61461050 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.2.45 +0.2.46 diff --git a/kittycad.rs.patch.json b/kittycad.rs.patch.json index 8afa0165..ecbdacf3 100644 --- a/kittycad.rs.patch.json +++ b/kittycad.rs.patch.json @@ -4,7 +4,7 @@ "path": "/info/x-rust", "value": { "client": "// Authenticate via an API token.\nlet client = kittycad::Client::new(\"$TOKEN\");\n\n// - OR -\n\n// Authenticate with your token and host parsed from the environment variables:\n// `KITTYCAD_API_TOKEN`.\nlet client = kittycad::Client::new_from_env();", - "install": "[dependencies]\nkittycad = \"0.2.45\"" + "install": "[dependencies]\nkittycad = \"0.2.46\"" } }, { diff --git a/kittycad/Cargo.toml b/kittycad/Cargo.toml index 6fc1b7aa..41a4dc69 100644 --- a/kittycad/Cargo.toml +++ b/kittycad/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "kittycad" description = "A fully generated & opinionated API client for the KittyCAD API." -version = "0.2.45" +version = "0.2.46" documentation = "https://docs.rs/kittycad" readme = "README.md" repository = "https://github.com/KittyCAD/kittycad.rs/tree/main/kittycad" diff --git a/kittycad/README.md b/kittycad/README.md index 8cc03542..cae9ac2c 100644 --- a/kittycad/README.md +++ b/kittycad/README.md @@ -31,7 +31,7 @@ To install the library, add the following to your `Cargo.toml` file. ```toml [dependencies] -kittycad = "0.2.45" +kittycad = "0.2.46" ``` ## Basic example diff --git a/kittycad/src/lib.rs b/kittycad/src/lib.rs index 48e33bf3..34718450 100644 --- a/kittycad/src/lib.rs +++ b/kittycad/src/lib.rs @@ -29,7 +29,7 @@ //! //! ```toml //! [dependencies] -//! kittycad = "0.2.45" +//! kittycad = "0.2.46" //! ``` //! //! ## Basic example