Publish Docs #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| workflow_dispatch: | |
| inputs: | |
| workspace_path: | |
| description: 'The workspace to publish' | |
| required: true | |
| type: choice | |
| options: | |
| - lib/shared/common | |
| - lib/shared/internal | |
| - lib/sdk/server | |
| - lib/java-server-sdk-otel | |
| - lib/java-server-sdk-redis-store | |
| dry_run: | |
| description: 'Is this a dry run. If so no docs will be published.' | |
| type: boolean | |
| required: true | |
| name: Publish Docs | |
| jobs: | |
| build-publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.1 | |
| name: Assume aws role | |
| with: | |
| aws_assume_role: ${{ vars.AWS_ROLE_ARN }} | |
| - name: CI Check | |
| uses: ./.github/actions/ci | |
| with: | |
| workspace_path: ${{ inputs.workspace_path }} | |
| java_version: 8 | |
| - name: Publish Documentation | |
| uses: ./.github/actions/publish-docs | |
| with: | |
| workspace_path: ${{ inputs.workspace_path }} | |
| dry_run: ${{ inputs.dry_run }} | |
| token: ${{secrets.GITHUB_TOKEN}} |