Skip to content

Commit

Permalink
ci: add server-ai to release-please config (#37)
Browse files Browse the repository at this point in the history
Adds release-please config for the AI sdk.
  • Loading branch information
cwaldren-ld authored Nov 12, 2024
1 parent acfa1a5 commit 29e05a9
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
package-sdk-server-tag_name: ${{ steps.release.outputs['pkgs/sdk/server--tag_name'] }}
package-sdk-server-telemetry-released: ${{ steps.release.outputs['pkgs/telemetry--release_created'] }}
package-sdk-server-telemetry-tag_name: ${{ steps.release.outputs['pkgs/telemetry--tag_name'] }}
package-sdk-server-ai-released: ${{ steps.release.outputs['pkgs/sdk/server-ai--release_created'] }}
package-sdk-server-ai-tag_name: ${{ steps.release.outputs['pkgs/sdk/server-ai--tag_name'] }}
package-sdk-client-released: ${{ steps.release.outputs['pkgs/sdk/client--release_created'] }}
package-sdk-client-tag_name: ${{ steps.release.outputs['pkgs/sdk/client--tag_name'] }}
tag_name: ${{ steps.release.outputs.tag_name }}
Expand Down Expand Up @@ -54,6 +56,35 @@ jobs:
aws_role: ${{ vars.AWS_ROLE_ARN }}
token: ${{ secrets.GITHUB_TOKEN }}

release-sdk-server-ai:
runs-on: ubuntu-latest
needs: release-please
permissions:
id-token: write
contents: write
pull-requests: write
if: ${{ needs.release-please.outputs.package-sdk-server-ai-released == 'true'}}
outputs:
hashes: ${{ steps.full-release.outputs.hashes }}
steps:
- uses: actions/checkout@v4

- name: Setup Env from project's Env file
shell: bash
run: echo "$(cat pkgs/sdk/server-ai/github_actions.env)" >> $GITHUB_ENV

- uses: ./.github/actions/full-release
id: full-release
with:
workspace_path: ${{ env.WORKSPACE_PATH }}
project_file: ${{ env.PROJECT_FILE }}
build_output_path: ${{ env.BUILD_OUTPUT_PATH }}
test_project_file: ${{ env.TEST_PROJECT_FILE }}
dll_name: ${{ env.BUILD_OUTPUT_DLL_NAME }}
dry_run: false
aws_role: ${{ vars.AWS_ROLE_ARN }}
token: ${{ secrets.GITHUB_TOKEN }}

release-telemetry:
runs-on: ubuntu-latest
needs: release-please
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
# pkgs/sdk/client is omitted here since this workflow is for ubuntu and the client sdk build process requires macos. Use release-sdk-client for client sdk.
- pkgs/sdk/server
- pkgs/telemetry
- pkgs/sdk/server-ai
dry_run:
description: 'Is this a dry run. If so no package will be published.'
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion pkgs/sdk/server-ai/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ We encourage pull requests and other contributions from the community. Before su

To set up your SDK build time environment, you must [download .NET development tools and follow the instructions](https://dotnet.microsoft.com/download).

The AI SDK wraps the [Server-Side](../server) SDK.
The AI SDK wraps the [Server-Side](../server/index.md) SDK.

### Building

Expand Down
7 changes: 7 additions & 0 deletions pkgs/sdk/server-ai/docs-src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Notes on in-code documentation for this project

All public types, methods, and properties should have documentation comments in the standard C# XML comment format.
These will be automatically included in the [HTML documentation](https://launchdarkly.github.io/dotnet-core/pkgs/sdk/server) that is generated on release.

Non-public items may have documentation comments as well, since those may be helpful to other developers working on this
project, but they will not be included in the HTML documentation.
6 changes: 6 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"src/LaunchDarkly.ServerSdk.csproj"
]
},
"pkgs/sdk/server-ai": {
"package-name": "LaunchDarkly.ServerSdk.Ai",
"extra-files": [
"src/LaunchDarkly.ServerSdk.Ai.csproj"
]
},
"pkgs/sdk/client": {
"package-name": "LaunchDarkly.ClientSdk",
"extra-files": [
Expand Down

0 comments on commit 29e05a9

Please sign in to comment.