Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,24 @@ jobs:
echo "Conteúdo atual do workspace após download:"
find .

- name: List downloaded artifact
run: |
echo "Listing downloaded files:"
find . -type d

- name: Check if dist directory exists
run: |
if [ ! -d "./${{ matrix.lambdaFunction }}/dist" ]; then
echo "❌ Directory ./${{ matrix.lambdaFunction }}/dist does not exist! Likely build artifact is incomplete."
if [ ! -d "./build/${{ matrix.lambdaFunction }}/dist" ]; then
echo "❌ Directory ./build/${{ matrix.lambdaFunction }}/dist does not exist! Likely build artifact is incomplete."
exit 1
fi

- name: Package Lambda
run: |
cd ./${{ matrix.lambdaFunction }}/dist
cd ./build/${{ matrix.lambdaFunction }}/dist
npm install --omit=dev --production
zip -r ../../../../${{ matrix.lambdaFunction }}.zip .

- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.lambdaFunction }}-package-artifact
path: ./${{ matrix.lambdaFunction }}.zip

deploy:
needs: package
runs-on: ubuntu-latest
Expand Down