File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed
Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 2222 default : false
2323
2424name : Release
25- run-name : Release
25+ run-name : Release – ${{ inputs.version }}
2626
2727permissions :
2828 contents : read
@@ -207,4 +207,34 @@ jobs:
207207 run : |
208208 gh release create v${{ inputs.version }} --target $(git rev-parse HEAD)
209209 env :
210- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
210+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
211+
212+ docs :
213+ runs-on : ubuntu-latest
214+ if : ${{ inputs.snapshot == false }}
215+ permissions :
216+ contents : read
217+ id-token : write
218+ environment : Docs
219+ steps :
220+ - id : download_source
221+ name : Download artifacts
222+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.6.1
223+ with :
224+ name : source
225+ - name : Build
226+ run : |
227+ mkdir -p dist
228+ docker build -t squidfunk/mkdocs-material ./docs/
229+ docker run --rm -t -v ${PWD}:/docs squidfunk/mkdocs-material build
230+ cp -R site/* dist/
231+ - name : Configure AWS credentials
232+ uses : aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722
233+ with :
234+ aws-region : us-east-1
235+ role-to-assume : ${{ secrets.AWS_DOCS_ROLE_ARN }}
236+ - name : Deploy
237+ run : |
238+ aws s3 sync \
239+ dist \
240+ s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-java/
You can’t perform that action at this time.
0 commit comments