diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 4178fe53..62c46563 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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 }} @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 201f2b1b..01557728 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/pkgs/sdk/server-ai/CONTRIBUTING.md b/pkgs/sdk/server-ai/CONTRIBUTING.md index 14866286..f1594b66 100644 --- a/pkgs/sdk/server-ai/CONTRIBUTING.md +++ b/pkgs/sdk/server-ai/CONTRIBUTING.md @@ -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 diff --git a/pkgs/sdk/server-ai/docs-src/README.md b/pkgs/sdk/server-ai/docs-src/README.md new file mode 100644 index 00000000..d3da6ae0 --- /dev/null +++ b/pkgs/sdk/server-ai/docs-src/README.md @@ -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. diff --git a/release-please-config.json b/release-please-config.json index ced71197..3273556c 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -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": [