Sandbox #13
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
name: Sandbox | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
type: string | |
description: Tag to release. Must already exist. | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.tag }} | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Build and deploy to Maven Central | |
run: ./mvnw --batch-mode clean package -DskipTests | |
- name: Set up AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: arn:aws:iam::786014483886:role/SDK_GHA | |
aws-region: us-west-1 | |
- name: Copy API docs to S3 | |
run: aws s3 cp --dryrun --recursive --acl public-read couchbase-analytics-java-client/target/reports/apidocs/ s3://docs.couchbase.com/sdk-api/couchbase-analytics-java-client-${{ inputs.tag }} | |
# aws s3 cp test.txt s3://docs.couchbase.com/sdk-api/couchbase-columnar-java-client-1.0.0/ | |
# run: aws s3 cp couchbase-analytics-client/target/reports/apidocs s3://docs.couchbase.com/sdk-api/couchbase-analytics-java-client |