Skip to content

Commit 6227e49

Browse files
committed
fix(ci): zip dist folders
1 parent 6b01b14 commit 6227e49

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,12 @@ jobs:
230230
- uses: actions/download-artifact@v2
231231
with:
232232
name: ${{ runner.os }}-build-functions-${{ needs.install.outputs.version }}
233-
path: functions/dist
233+
path: functions-dist/
234234

235235
- run: |
236-
ls -la
236+
zip -r public-ssr.zip -q -1 public-ssr/
237+
zip -r public-csr.zip -q -1 public-csr/
238+
zip -r functions-dist.zip -q -1 functions-dist/
237239
npm run release
238240
239241
deploy-ssr:

.releaserc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"@semantic-release/release-notes-generator",
66
["@semantic-release/github", {
77
"assets": [
8-
{"path": "public-ssr/**", "label": "UI SSR Distribution"},
9-
{"path": "public-csr/**", "label": "UI CSR Distribution"},
10-
{"path": "functions/dist/**", "label": "Functions Distribution"}
8+
{"path": "./public-ssr.zip", "name": "ui-ssr-${nextRelease.version}", "label": "UI SSR Distribution"},
9+
{"path": "./public-csr.zip", "name": "ui-css-${nextRelease.version}", "label": "UI CSR Distribution"},
10+
{"path": "./functions-dist.zip", "name": "functions-${nextRelease.version}", "label": "Functions Distribution"}
1111
]
1212
}]
1313
]

0 commit comments

Comments
 (0)