From da80adb410e5a9c617fc6cea0771ba0ca23701e2 Mon Sep 17 00:00:00 2001 From: ahmadmusair Date: Fri, 24 Jun 2022 11:33:37 +0700 Subject: [PATCH] fix: wrong semrel github config --- .github/workflows/ci.yml | 6 ++++++ release.config.js | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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" }, + ], }, ], ],