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:
parent
b2deff58cc
commit
8002dc0172
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user