11---
2- # This workflow is used to build the link index updater lambda function zip
3- # that can be deployed to AWS Lambda.
2+ # This workflow is used to build the link- index- updater
3+ # lambda function bootstrap binary that can be deployed to AWS Lambda.
44name : Build Link Index Updater Lambda
55
66on :
1515 artifact-id :
1616 description : ' Artifact ID of the uploaded artifact. Can be used to download the artifact in other workflows.'
1717 value : ${{ jobs.build.outputs.artifact-id }}
18- artifact-path :
19- description : ' Path to the zip file.'
20- value : ${{ jobs.build.outputs.zip-file }}
21-
18+
2219jobs :
2320 build :
2421 outputs :
2522 artifact-id : ${{ steps.upload-artifact.outputs.artifact-id }}
2623 zip-file : ${{ steps.create-zip.outputs.zip-file }}
2724 runs-on : ubuntu-latest
2825 env :
29- ZIP_FILE : link- index-updater-lambda.zip
26+ BINARY_PATH : .artifacts/docs-lambda- index-publisher/release_linux-x64/bootstrap
3027 steps :
3128 - uses : actions/checkout@v4
3229 with :
@@ -40,17 +37,12 @@ jobs:
4037 - name : Inspect bootstrap binary
4138 run : |
4239 tree .artifacts
43- stat .artifacts/docs-lambda-index-publisher/release_linux-x64/bootstrap
44- - name : Create zip file
45- id : create-zip
46- run : |
47- zip -j "${ZIP_FILE}" .artifacts/docs-lambda-index-publisher/release_linux-x64/bootstrap
48- echo "zip-file=${ZIP_FILE}" >> "${GITHUB_OUTPUT}"
40+ stat "${BINARY_PATH}"
4941 - name : Archive artifact
5042 id : upload-artifact
5143 uses : actions/upload-artifact@v4
5244 with :
53- name : link-index-updater-lambda
45+ name : link-index-updater-lambda-binary
5446 retention-days : 1
5547 if-no-files-found : error
56- path : ${{ env.ZIP_FILE }}
48+ path : ${{ env.BINARY_PATH }}
0 commit comments