From d8fa1ff36d62ef0ce2f05d7602bd6a5930ec3182 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 19 Sep 2023 15:01:56 +0100 Subject: [PATCH] pack/unpack build artifacts --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de3f3ef0..c2321d70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,11 +110,14 @@ jobs: restore-keys: ${{ matrix.os }}-${{ matrix.node }}-astro-build- - run: npm ci - run: npm run build + - name: Zip artifact for deployment + if: github.ref == 'refs/heads/main' + run: zip dist.zip ./dist -r - uses: actions/upload-artifact@v3 if: github.ref == 'refs/heads/main' with: name: dist-${{ matrix.os }}-${{ matrix.node }} - path: dist + path: dist.zip coverage: runs-on: ubuntu-latest @@ -139,7 +142,9 @@ jobs: - uses: actions/download-artifact@v3 with: name: dist-ubuntu-latest-18 - path: dist + path: dist.zip + - name: unzip artifact + run: unzip dist.zip dist - name: Deploy to S3 run: npm run deploy:s3 env: