Skip to content

Commit f364f05

Browse files
fix(CI/CD): address issue with 'ARCHIVE_NAME' usage and exclude '.git'
1 parent 5edffc3 commit f364f05

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yaml.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ jobs:
4747
mkdir -p dist
4848
ARCHIVE_NAME="${{ steps.version.outputs.archive_name }}"
4949
rsync -av \
50-
--exclude="tsrc/node_modules" \
51-
--exclude="dist" \
52-
./ "dist/${FOLDER}/"
50+
--exclude='.git' \
51+
--exclude='tsrc/node_modules' \
52+
--exclude='dist' \
53+
./ "dist/${ARCHIVE_NAME}/"
5354
cd dist
5455
zip -r "${ARCHIVE_NAME}.zip" "${ARCHIVE_NAME}/"
5556
tar -czvf "${ARCHIVE_NAME}.tar.gz" "${ARCHIVE_NAME}/"
@@ -58,8 +59,8 @@ jobs:
5859
with:
5960
name: Artefacts
6061
path: |
61-
dist/"${{ steps.version.outputs.archive_name }}.zip"
62-
dist/"${{ steps.version.outputs.archive_name }}.tar.gz"
62+
dist/"${ARCHIVE_NAME}.zip"
63+
dist/"${ARCHIVE_NAME}.tar.gz"
6364
6465

6566

0 commit comments

Comments
 (0)