Skip to content

Commit

Permalink
ci: fixing client publish workflow after testing (#15)
Browse files Browse the repository at this point in the history
Minor tweaks to get client publish workflow.
  • Loading branch information
tanderson-ld authored Aug 27, 2024
1 parent d9553dc commit baecdb0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .github/actions/publish-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,21 @@ outputs:
runs:
using: composite
steps:
- name: Setup dotnet build tools
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0
7.0
- name: Install Workloads
shell: bash
run: dotnet workload restore ${{ inputs.project_file }}

- name: Create Nuget Package
shell: bash
run: |
dotnet restore
dotnet restore ${{ inputs.project_file }}
dotnet pack --no-build --output nupkgs --configuration Release ${{ inputs.project_file }}
- name: Publish Package
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
name: Get secrets
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
s3_path_pairs: 'launchdarkly-releaser/dotnet/LaunchDarkly.snk = LaunchDarkly.snk'
s3_path_pairs: 'launchdarkly-releaser/dotnet/LaunchDarkly.ClientSdk.snk = LaunchDarkly.ClientSdk.snk'

- name: CI check
uses: ./.github/actions/ci
Expand Down Expand Up @@ -142,6 +142,7 @@ jobs:
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/production/common/releasing/nuget/api_key = NUGET_API_KEY'
s3_path_pairs: 'launchdarkly-releaser/dotnet/LaunchDarkly.ClientSdk.snk = LaunchDarkly.ClientSdk.snk'

- name: Publish Nupkg
id: publish
Expand Down
2 changes: 1 addition & 1 deletion pkgs/sdk/client/github_actions.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
WORKSPACE_PATH=pkgs/sdk/client
PROJECT_FILE=pkgs/sdk/client/src/LaunchDarkly.ClientSdk.csproj
BUILD_OUTPUT_PATH=pkgs/sdk/client/src/LaunchDarkly.ClientSdk/bin/Release/
BUILD_OUTPUT_PATH=pkgs/sdk/client/src/bin/Release/
BUILD_OUTPUT_DLL_NAME=LaunchDarkly.ClientSdk.dll
TEST_PROJECT_FILE=pkgs/sdk/client/test/LaunchDarkly.ClientSdk.Tests/LaunchDarkly.ClientSdk.Tests.csproj
CONTRACT_TEST_PROJECT_FILE=pkgs/sdk/client/contract-tests/TestService.csproj
Expand Down

0 comments on commit baecdb0

Please sign in to comment.