Skip to content

Commit 15cd41a

Browse files
committed
Experimenting with publishing docs to S3 via actions
1 parent e25533e commit 15cd41a

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/deploy-snapshot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- main
1010
paths-ignore:
1111
- '*/fit/**'
12+
- '.github/workflows/sandbox.yml'
1213

1314
jobs:
1415
build:

.github/workflows/sandbox.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Sandbox
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
type: string
8+
description: Tag to release. Must already exist.
9+
required: true
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
16+
contents: read
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ inputs.tag }}
22+
23+
# - uses: aws-actions/configure-aws-credentials@v4
24+
# with:
25+
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
26+
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
27+
# aws-region: us-east-1
28+
29+
# - name: Verify the ref is actually a tag
30+
# run: git tag --list | grep --line-regexp ${{ inputs.tag }}
31+
32+
- name: Set up JDK 21
33+
uses: actions/setup-java@v4
34+
with:
35+
java-version: '21'
36+
distribution: 'temurin'
37+
38+
# - name: Build and deploy to Maven Central
39+
# run: ./mvnw --batch-mode clean install -DskipTests
40+
41+
42+
- name: Set up AWS Credentials
43+
uses: aws-actions/configure-aws-credentials@v3
44+
with:
45+
role-to-assume: arn:aws:iam::786014483886:role/SDK_GHA
46+
aws-region: us-west-1
47+
48+
- name: Copy API docs to S3
49+
run: aws s3 ls s3://docs.couchbase.com/sdk-api
50+
# run: aws sts get-caller-identity
51+
52+
# run: aws s3 cp couchbase-analytics-client/target/reports/apidocs s3://docs.couchbase.com/sdk-api/couchbase-analytics-java-client
53+
54+

0 commit comments

Comments
 (0)