Skip to content

Commit b5a95b7

Browse files
committed
Publish preview docs
1 parent d55f4e7 commit b5a95b7

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Docs
2+
on:
3+
pull_request:
4+
branches:
5+
- v2
6+
push:
7+
branches:
8+
- v2
9+
workflow_dispatch: {}
10+
11+
permissions:
12+
id-token: write
13+
contents: write
14+
pages: write
15+
16+
jobs:
17+
docs:
18+
runs-on: ubuntu-latest
19+
environment: Docs
20+
steps:
21+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
22+
- name: Set up Python
23+
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
24+
with:
25+
python-version: "3.8"
26+
- name: Capture branch and tag
27+
id: branch_name
28+
run: |
29+
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
30+
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
31+
- name: Build docs website
32+
run: |
33+
make build-docs-website
34+
- name: Configure AWS credentials
35+
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef
36+
with:
37+
aws-region: us-east-1
38+
role-to-assume: ${{ secrets.AWS_DOCS_ROLE_ARN }}
39+
- name: Deploy Docs
40+
run: |
41+
aws s3 sync \
42+
dist \
43+
s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-java/preview/

.github/workflows/publish-v2-snapshot.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches:
88
- v2
9-
-
109
workflow_dispatch: {}
1110
jobs:
1211
publish:

0 commit comments

Comments
 (0)