Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit da30008

Browse files
authored
ci: reference full-release action, not workflow (#201)
1 parent 1045f28 commit da30008

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

.github/actions/build-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ runs:
1919

2020
- name: Build
2121
shell: bash
22-
run: dotnet build /p:Configuration=Release ${{ inputs.project_file }}
22+
run: dotnet build -p:Configuration=Release ${{ inputs.project_file }}

.github/actions/full-release/action.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ inputs:
1818
required: true
1919
dry_run:
2020
description: 'Is this a dry run. If so no package will be published.'
21-
type: boolean
21+
required: true
22+
aws_role:
23+
description: 'The AWS role to assume, needed to fetch release secrets.'
24+
required: true
25+
token:
26+
description: 'The GitHub token to use for publishing documentation.'
2227
required: true
2328

2429
runs:
@@ -33,7 +38,7 @@ runs:
3338
- uses: launchdarkly/gh-actions/actions/[email protected]
3439
name: Get secrets
3540
with:
36-
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
41+
aws_assume_role: ${{ inputs.aws_role }}
3742
ssm_parameter_pairs: '/production/common/releasing/digicert/host = DIGICERT_HOST,
3843
/production/common/releasing/digicert/api_key = DIGICERT_API_KEY,
3944
/production/common/releasing/digicert/client_cert_file_b64 = DIGICERT_CLIENT_CERT_FILE_B64,
@@ -44,17 +49,18 @@ runs:
4449
- name: Release build
4550
uses: ./.github/actions/build-release
4651
with:
47-
project_file: pkgs/sdk/server/src/LaunchDarkly.ServerSdk.csproj
52+
project_file: ${{ inputs.project_file }}
4853

4954
- name: Sign DLLs
5055
uses: launchdarkly/gh-actions/actions/[email protected]
5156
with:
52-
build_output_path: ${{ inputs.build_output_path }}
57+
build_configuration_path: ${{ inputs.build_output_path }}
5358
dll_name: ${{ inputs.dll_name }}
5459

5560
- name: Publish Nupkg
5661
uses: ./.github/actions/publish-package
5762
with:
63+
project_file: ${{ inputs.project_file }}
5864
dry_run: ${{ inputs.dry_run }}
5965

6066
- name: Build Documentation
@@ -63,7 +69,8 @@ runs:
6369
workspace_path: ${{ inputs.workspace_path }}
6470

6571
- name: Publish Documentation
72+
if: ${{ inputs.dry_run == 'false' }}
6673
uses: ./.github/actions/publish-docs
6774
with:
6875
workspace_path: ${{ inputs.workspace_path }}
69-
token: ${{secrets.GITHUB_TOKEN}}
76+
token: ${{ inputs.token }}

.github/workflows/manual-publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,27 @@ jobs:
2121
id-token: write
2222
contents: write
2323
steps:
24-
- uses: ./.github/workflows/full-release.yml
24+
- uses: actions/checkout@v4
25+
- uses: ./.github/actions/full-release
2526
if: ${{ inputs.pkg_name == 'LaunchDarkly.ServerSdk' }}
2627
with:
2728
workspace_path: 'pkgs/sdk/server'
2829
project_file: 'pkgs/sdk/server/src/LaunchDarkly.ServerSdk.csproj'
2930
test_project_file: 'pkgs/sdk/server/test/LaunchDarkly.ServerSdk.Tests.csproj'
3031
build_output_path: 'pkgs/sdk/server/src/bin/Release/'
3132
dll_name: 'LaunchDarkly.ServerSdk.dll'
32-
dry_run: false
33+
dry_run: ${{ inputs.dry_run }}
34+
aws_role: ${{ vars.AWS_ROLE_ARN }}
35+
token: ${{ secrets.GITHUB_TOKEN }}
3336

34-
- uses: ./.github/workflows/full-release.yml
37+
- uses: ./.github/actions/full-release
3538
if: ${{ inputs.pkg_name == 'LaunchDarkly.ServerSdk.Telemetry' }}
3639
with:
3740
workspace_path: 'pkgs/telemetry'
3841
project_file: 'pkgs/telemetry/src/LaunchDarkly.ServerSdk.Telemetry.csproj'
3942
test_project_file: 'pkgs/telemetry/test/LaunchDarkly.ServerSdk.Telemetry.Tests.csproj'
4043
build_output_path: 'pkgs/telemetry/src/bin/Release/'
4144
dll_name: 'LaunchDarkly.ServerSdk.Telemetry.dll'
42-
dry_run: false
45+
dry_run: ${{ inputs.dry_run }}
46+
aws_role: ${{ vars.AWS_ROLE_ARN }}
47+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
build_output_path: 'pkgs/sdk/server/src/bin/Release/'
3939
dll_name: 'LaunchDarkly.ServerSdk.dll'
4040
dry_run: false
41+
aws_role: ${{ vars.AWS_ROLE_ARN }}
42+
token: ${{ secrets.GITHUB_TOKEN }}
4143

4244
release-telemetry:
4345
runs-on: ubuntu-latest
@@ -58,3 +60,5 @@ jobs:
5860
build_output_path: 'pkgs/telemetry/src/bin/Release/'
5961
dll_name: 'LaunchDarkly.ServerSdk.Telemetry.dll'
6062
dry_run: false
63+
aws_role: ${{ vars.AWS_ROLE_ARN }}
64+
token: ${{ secrets.GITHUB_TOKEN }}

pkgs/sdk/server/src/LaunchDarkly.ServerSdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454

5555
<PropertyGroup Condition="'$(Configuration)'=='Release'">
56-
<AssemblyOriginatorKeyFile>../../LaunchDarkly.snk</AssemblyOriginatorKeyFile>
56+
<AssemblyOriginatorKeyFile>../../../../LaunchDarkly.snk</AssemblyOriginatorKeyFile>
5757
<SignAssembly>true</SignAssembly>
5858
</PropertyGroup>
5959

pkgs/telemetry/src/LaunchDarkly.ServerSdk.Telemetry.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</ItemGroup>
4747

4848
<PropertyGroup Condition="'$(Configuration)'=='Release'">
49-
<AssemblyOriginatorKeyFile>../../LaunchDarkly.snk</AssemblyOriginatorKeyFile>
49+
<AssemblyOriginatorKeyFile>../../../LaunchDarkly.snk</AssemblyOriginatorKeyFile>
5050
<SignAssembly>true</SignAssembly>
5151
</PropertyGroup>
5252

0 commit comments

Comments
 (0)