mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +01:00
pack/unpack build artifacts
This commit is contained in:
parent
6d42da22ac
commit
d8fa1ff36d
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -110,11 +110,14 @@ jobs:
|
|||||||
restore-keys: ${{ matrix.os }}-${{ matrix.node }}-astro-build-
|
restore-keys: ${{ matrix.os }}-${{ matrix.node }}-astro-build-
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- 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
|
- uses: actions/upload-artifact@v3
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
with:
|
with:
|
||||||
name: dist-${{ matrix.os }}-${{ matrix.node }}
|
name: dist-${{ matrix.os }}-${{ matrix.node }}
|
||||||
path: dist
|
path: dist.zip
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -139,7 +142,9 @@ jobs:
|
|||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: dist-ubuntu-latest-18
|
name: dist-ubuntu-latest-18
|
||||||
path: dist
|
path: dist.zip
|
||||||
|
- name: unzip artifact
|
||||||
|
run: unzip dist.zip dist
|
||||||
- name: Deploy to S3
|
- name: Deploy to S3
|
||||||
run: npm run deploy:s3
|
run: npm run deploy:s3
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user