1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

more build artifact isolation

This commit is contained in:
Matthias Kretschmann 2023-09-19 16:25:19 +01:00
parent b2deff58cc
commit 8002dc0172
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -67,6 +67,7 @@ jobs:
- run: npm ci - run: npm ci
- run: npm run test:unit - run: npm run test:unit
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-latest' && matrix.node == '18'
with: with:
name: coverage-${{ matrix.os }}-${{ matrix.node }} name: coverage-${{ matrix.os }}-${{ matrix.node }}
path: coverage/ path: coverage/
@ -111,10 +112,10 @@ jobs:
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
- name: Zip artifact for deployment - name: Zip artifact for deployment
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' && matrix.node == '18'
run: zip dist.zip ./dist -r run: zip dist.zip ./dist -r
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' && matrix.node == '18'
with: with:
name: dist-${{ matrix.os }}-${{ matrix.node }} name: dist-${{ matrix.os }}-${{ matrix.node }}
path: dist.zip path: dist.zip