diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1551b92..c04a38e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,12 @@ jobs: name: build path: build + - name: Zip Assets + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + zip -r buid.zip ./build + zip -r coverage.zip ./coverage + - name: Create a Release if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: npx semantic-release diff --git a/release.config.js b/release.config.js index 436d2e0..fbd6215 100644 --- a/release.config.js +++ b/release.config.js @@ -7,7 +7,10 @@ module.exports = { [ "@semantic-release/github", { - assets: "build", + assets: [ + { path: "build.zip", label: "Build" }, + { path: "coverage.zip", label: "Coverage" }, + ], }, ], ],