Skip to content

Commit 9e62424

Browse files
committed
Revert "docs: add support for docs versioning (#1239) (#1293)"
This reverts commit 3dc8405.
1 parent 2dfb6ce commit 9e62424

File tree

6 files changed

+42
-186
lines changed

6 files changed

+42
-186
lines changed

.github/workflows/build-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
- name: Build docs website
3535
run: |
3636
echo "GIT_PYTHON_REFRESH=quiet"
37-
make build-docs-website
37+
make build-docs-website

.github/workflows/docs.yml

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

.github/workflows/rebuild-latest-docs.yml

-39
This file was deleted.

.github/workflows/release-doc.yml

-19
This file was deleted.

.github/workflows/reusable-publish-docs.yml

-124
This file was deleted.

mkdocs.yml

-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ extra_javascript:
8282
- javascript/extra.js
8383

8484
extra:
85-
version:
86-
provider: mike
87-
default: latest
8885
powertools:
8986
version: 1.16.1 # to update after each release (we do not want snapshot version here)
9087

0 commit comments

Comments
 (0)