Skip to content

Commit d01382d

Browse files
authored
docs: adding manual publish docs action (#12)
Adds a manual docs action.
1 parent de460e6 commit d01382d

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
workspace_path:
5+
description: 'The workspace to publish'
6+
required: true
7+
type: choice
8+
options:
9+
- lib/java-server-sdk-otel
10+
dry_run:
11+
description: 'Is this a dry run. If so no docs will be published.'
12+
type: boolean
13+
required: true
14+
token:
15+
description: 'Token to use for publishing.'
16+
required: true
17+
18+
name: Publish Docs
19+
jobs:
20+
build-publish:
21+
runs-on: ubuntu-latest
22+
permissions:
23+
id-token: write
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: launchdarkly/gh-actions/actions/[email protected]
29+
name: Assume aws role
30+
with:
31+
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
32+
33+
- name: CI Check
34+
uses: ./.github/actions/ci
35+
with:
36+
workspace_path: ${{ inputs.workspace_path }}
37+
java_version: 8
38+
39+
- name: Publish Documentation
40+
uses: ./.github/actions/publish-docs
41+
with:
42+
workspace_path: ${{ inputs.workspace_path }}
43+
token: ${{ inputs.token }}
44+
dry_run: ${{ inputs.dry_run }}

.github/workflows/manual-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
permissions:
2828
id-token: write
29-
contents: read
29+
contents: write
3030
steps:
3131
- uses: actions/checkout@v3
3232

lib/java-server-sdk-otel/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies {
3434
// All Otel testing common packages are alpha variants, usage of alpha is intentional here
3535
testImplementation 'io.opentelemetry.javaagent:opentelemetry-testing-common:1.33.1-alpha'
3636

37-
implementation "com.launchdarkly:launchdarkly-java-server-sdk:7.4.0-SNAPSHOT"
37+
implementation "com.launchdarkly:launchdarkly-java-server-sdk:7.4.0"
3838
implementation "io.opentelemetry:opentelemetry-api:1.2.0"
3939
}
4040

0 commit comments

Comments
 (0)