@@ -275,37 +275,23 @@ jobs:
275275276276 if : matrix.name == 'macos'
277277 with :
278- name : github-pages
279278 path : coverage
280279
280+ - name : setup GitHub Pages
281+ if : matrix.name == 'macos'
282+ uses : actions/configure-pages@v5
283+
284+ - name : deploy coverage to GitHub Pages
285+ if : matrix.name == 'macos'
286+ 287+
281288282289 if : always()
283290 with :
284291 name : cloudsync-${{ matrix.name }}${{ matrix.arch && format('-{0}', matrix.arch) || '' }}
285292 path : dist/cloudsync.*
286293 if-no-files-found : error
287294
288- deploy_coverage :
289- name : deploy coverage
290- runs-on : ubuntu-latest
291- needs : build
292-
293- steps :
294-
295- - name : download coverage artifact
296- 297- with :
298- name : github-pages
299-
300- - name : debug
301- run : ls -lah
302-
303- - name : setup GitHub Pages
304- uses : actions/configure-pages@v5
305-
306- - name : deploy coverage to GitHub Pages
307- 308-
309295 release :
310296 runs-on : ubuntu-latest
311297 name : release
@@ -340,7 +326,7 @@ jobs:
340326 for folder in "artifacts"/*; do
341327 if [ -d "$folder" ]; then
342328 name=$(basename "$folder")
343- if [[ "$name" != "coverage " ]]; then
329+ if [[ "$name" != "github-pages " ]]; then
344330 zip -jq "${name}-${{ steps.tag.outputs.version }}.zip" "$folder"/*
345331 tar -cJf "${name}-${{ steps.tag.outputs.version }}.tar.xz" -C "$folder" .
346332 tar -czf "${name}-${{ steps.tag.outputs.version }}.tar.gz" -C "$folder" .
0 commit comments