feat: Adds support for client side prerequisite events. (#39) #23
This file contains 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
name: Release Please | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
outputs: | |
package-server-sdk-otel-released: ${{ steps.release.outputs['lib/java-server-sdk-otel--release_created'] }} | |
package-sdk-common-released: ${{ steps.release.outputs['lib/java-sdk-common--release_created'] }} | |
package-sdk-internal-released: ${{ steps.release.outputs['lib/java-sdk-internal--release_created'] }} | |
package-server-sdk-released: ${{ steps.release.outputs['lib/java-server-sdk--release_created'] }} | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
target-branch: ${{ github.ref_name }} | |
release-server-sdk: | |
runs-on: ubuntu-latest | |
needs: release-please | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
if: ${{ needs.release-please.outputs.package-server-sdk-released == 'true'}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: launchdarkly/gh-actions/actions/[email protected] | |
name: Get secrets | |
with: | |
aws_assume_role: ${{ vars.AWS_ROLE_ARN }} | |
ssm_parameter_pairs: '/production/common/releasing/sonatype/username = SONATYPE_USER_NAME, | |
/production/common/releasing/sonatype/password = SONATYPE_PASSWORD' | |
s3_path_pairs: 'launchdarkly-releaser/java/code-signing-keyring.gpg = code-signing-keyring.gpg' | |
- uses: ./.github/actions/full-release | |
with: | |
workspace_path: lib/sdk/server | |
dry_run: false | |
prerelease: false | |
code_signing_keyring: 'code-signing-keyring.gpg' | |
signing_key_id: ${{ env.SIGNING_KEY_ID }} | |
signing_key_passphrase: ${{ env.SIGNING_KEY_PASSPHRASE }} | |
sonatype_username: ${{ env.SONATYPE_USER_NAME }} | |
sonatype_password: ${{ env.SONATYPE_PASSWORD }} | |
aws_role: ${{ vars.AWS_ROLE_ARN }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-server-sdk-otel: | |
runs-on: ubuntu-latest | |
needs: release-please | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
if: ${{ needs.release-please.outputs.package-server-sdk-otel-released == 'true'}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: launchdarkly/gh-actions/actions/[email protected] | |
name: Get secrets | |
with: | |
aws_assume_role: ${{ vars.AWS_ROLE_ARN }} | |
ssm_parameter_pairs: '/production/common/releasing/sonatype/username = SONATYPE_USER_NAME, | |
/production/common/releasing/sonatype/password = SONATYPE_PASSWORD' | |
s3_path_pairs: 'launchdarkly-releaser/java/code-signing-keyring.gpg = code-signing-keyring.gpg' | |
- uses: ./.github/actions/full-release | |
with: | |
workspace_path: lib/java-server-sdk-otel | |
dry_run: false | |
prerelease: false | |
code_signing_keyring: 'code-signing-keyring.gpg' | |
signing_key_id: ${{ env.SIGNING_KEY_ID }} | |
signing_key_passphrase: ${{ env.SIGNING_KEY_PASSPHRASE }} | |
sonatype_username: ${{ env.SONATYPE_USER_NAME }} | |
sonatype_password: ${{ env.SONATYPE_PASSWORD }} | |
aws_role: ${{ vars.AWS_ROLE_ARN }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-sdk-internal: | |
runs-on: ubuntu-latest | |
needs: release-please | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
if: ${{ needs.release-please.outputs.package-sdk-internal-released == 'true'}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: launchdarkly/gh-actions/actions/[email protected] | |
name: Get secrets | |
with: | |
aws_assume_role: ${{ vars.AWS_ROLE_ARN }} | |
ssm_parameter_pairs: '/production/common/releasing/sonatype/username = SONATYPE_USER_NAME, | |
/production/common/releasing/sonatype/password = SONATYPE_PASSWORD' | |
s3_path_pairs: 'launchdarkly-releaser/java/code-signing-keyring.gpg = code-signing-keyring.gpg' | |
- uses: ./.github/actions/full-release | |
with: | |
workspace_path: lib/shared/internal | |
dry_run: true #TODO make this false after testing | |
prerelease: true #TODO make this false after testing | |
code_signing_keyring: 'code-signing-keyring.gpg' | |
signing_key_id: ${{ env.SIGNING_KEY_ID }} | |
signing_key_passphrase: ${{ env.SIGNING_KEY_PASSPHRASE }} | |
sonatype_username: ${{ env.SONATYPE_USER_NAME }} | |
sonatype_password: ${{ env.SONATYPE_PASSWORD }} | |
aws_role: ${{ vars.AWS_ROLE_ARN }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-sdk-common: | |
runs-on: ubuntu-latest | |
needs: release-please | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
if: ${{ needs.release-please.outputs.package-sdk-common-released == 'true'}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: launchdarkly/gh-actions/actions/[email protected] | |
name: Get secrets | |
with: | |
aws_assume_role: ${{ vars.AWS_ROLE_ARN }} | |
ssm_parameter_pairs: '/production/common/releasing/sonatype/username = SONATYPE_USER_NAME, | |
/production/common/releasing/sonatype/password = SONATYPE_PASSWORD' | |
s3_path_pairs: 'launchdarkly-releaser/java/code-signing-keyring.gpg = code-signing-keyring.gpg' | |
- uses: ./.github/actions/full-release | |
with: | |
workspace_path: lib/shared/common | |
dry_run: true #TODO make this false after testing | |
prerelease: true #TODO make this false after testing | |
code_signing_keyring: 'code-signing-keyring.gpg' | |
signing_key_id: ${{ env.SIGNING_KEY_ID }} | |
signing_key_passphrase: ${{ env.SIGNING_KEY_PASSPHRASE }} | |
sonatype_username: ${{ env.SONATYPE_USER_NAME }} | |
sonatype_password: ${{ env.SONATYPE_PASSWORD }} | |
aws_role: ${{ vars.AWS_ROLE_ARN }} | |
token: ${{ secrets.GITHUB_TOKEN }} |