Sandbox #5
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 }} | |
# - uses: aws-actions/configure-aws-credentials@v4 | |
# with: | |
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# aws-region: us-east-1 | |
# - name: Verify the ref is actually a tag | |
# run: git tag --list | grep --line-regexp ${{ 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 install -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 ls s3://docs.couchbase.com/sdk-api | |
# run: aws sts get-caller-identity | |
# run: aws s3 cp couchbase-analytics-client/target/reports/apidocs s3://docs.couchbase.com/sdk-api/couchbase-analytics-java-client | |