Skip to content

Commit 29e05a9

Browse files
authored
ci: add server-ai to release-please config (#37)
Adds release-please config for the AI sdk.
1 parent acfa1a5 commit 29e05a9

File tree

5 files changed

+46
-1
lines changed

5 files changed

+46
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
package-sdk-server-tag_name: ${{ steps.release.outputs['pkgs/sdk/server--tag_name'] }}
1515
package-sdk-server-telemetry-released: ${{ steps.release.outputs['pkgs/telemetry--release_created'] }}
1616
package-sdk-server-telemetry-tag_name: ${{ steps.release.outputs['pkgs/telemetry--tag_name'] }}
17+
package-sdk-server-ai-released: ${{ steps.release.outputs['pkgs/sdk/server-ai--release_created'] }}
18+
package-sdk-server-ai-tag_name: ${{ steps.release.outputs['pkgs/sdk/server-ai--tag_name'] }}
1719
package-sdk-client-released: ${{ steps.release.outputs['pkgs/sdk/client--release_created'] }}
1820
package-sdk-client-tag_name: ${{ steps.release.outputs['pkgs/sdk/client--tag_name'] }}
1921
tag_name: ${{ steps.release.outputs.tag_name }}
@@ -54,6 +56,35 @@ jobs:
5456
aws_role: ${{ vars.AWS_ROLE_ARN }}
5557
token: ${{ secrets.GITHUB_TOKEN }}
5658

59+
release-sdk-server-ai:
60+
runs-on: ubuntu-latest
61+
needs: release-please
62+
permissions:
63+
id-token: write
64+
contents: write
65+
pull-requests: write
66+
if: ${{ needs.release-please.outputs.package-sdk-server-ai-released == 'true'}}
67+
outputs:
68+
hashes: ${{ steps.full-release.outputs.hashes }}
69+
steps:
70+
- uses: actions/checkout@v4
71+
72+
- name: Setup Env from project's Env file
73+
shell: bash
74+
run: echo "$(cat pkgs/sdk/server-ai/github_actions.env)" >> $GITHUB_ENV
75+
76+
- uses: ./.github/actions/full-release
77+
id: full-release
78+
with:
79+
workspace_path: ${{ env.WORKSPACE_PATH }}
80+
project_file: ${{ env.PROJECT_FILE }}
81+
build_output_path: ${{ env.BUILD_OUTPUT_PATH }}
82+
test_project_file: ${{ env.TEST_PROJECT_FILE }}
83+
dll_name: ${{ env.BUILD_OUTPUT_DLL_NAME }}
84+
dry_run: false
85+
aws_role: ${{ vars.AWS_ROLE_ARN }}
86+
token: ${{ secrets.GITHUB_TOKEN }}
87+
5788
release-telemetry:
5889
runs-on: ubuntu-latest
5990
needs: release-please

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
# 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.
1111
- pkgs/sdk/server
1212
- pkgs/telemetry
13+
- pkgs/sdk/server-ai
1314
dry_run:
1415
description: 'Is this a dry run. If so no package will be published.'
1516
type: boolean

pkgs/sdk/server-ai/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We encourage pull requests and other contributions from the community. Before su
1616

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

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

2121
### Building
2222

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Notes on in-code documentation for this project
2+
3+
All public types, methods, and properties should have documentation comments in the standard C# XML comment format.
4+
These will be automatically included in the [HTML documentation](https://launchdarkly.github.io/dotnet-core/pkgs/sdk/server) that is generated on release.
5+
6+
Non-public items may have documentation comments as well, since those may be helpful to other developers working on this
7+
project, but they will not be included in the HTML documentation.

release-please-config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
"src/LaunchDarkly.ServerSdk.csproj"
1010
]
1111
},
12+
"pkgs/sdk/server-ai": {
13+
"package-name": "LaunchDarkly.ServerSdk.Ai",
14+
"extra-files": [
15+
"src/LaunchDarkly.ServerSdk.Ai.csproj"
16+
]
17+
},
1218
"pkgs/sdk/client": {
1319
"package-name": "LaunchDarkly.ClientSdk",
1420
"extra-files": [

0 commit comments

Comments
 (0)