Skip to content

Commit 84b029a

Browse files
authored
chore(docs): upload versions.json (#1521)
1 parent 9c75f9a commit 84b029a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Diff for: .github/workflows/reusable-publish-docs.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,16 @@ jobs:
125125
run: |
126126
aws s3 sync \
127127
site/ \
128-
s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-typescript/${{ env.ALIAS }}/
128+
s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-typescript/${{ env.ALIAS }}/
129+
- name: Deploy Docs (Version JSON)
130+
env:
131+
VERSION: ${{ inputs.version }}
132+
ALIAS: ${{ inputs.alias }}
133+
run: |
134+
aws s3 cp \
135+
s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-typescript/versions.json \
136+
versions_old.json
137+
jq '. += [{"version": "${{ env.VERSION }}", "title": "${{ env.VERSION }}", "aliases": []}]' < versions_old.json > versions.json
138+
aws s3 cp \
139+
versions.json \
140+
s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-typescript/versions.json

0 commit comments

Comments
 (0)