Skip to content

Commit 9676c63

Browse files
committed
fix(ci): include top-level directory in release archive
1 parent 68e3050 commit 9676c63

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,24 @@ jobs:
4545
env:
4646
ARCHIVE_NAME: ${{ steps.prep.outputs.archive_name }}
4747
run: |
48-
zip -r "$ARCHIVE_NAME" . \
49-
-x ".git/*" \
50-
-x ".github/*" \
51-
-x ".venv/*" \
52-
-x "__pycache__/*" \
53-
-x "*.pyc" \
54-
-x ".ruff_cache/*" \
48+
# Create temp directory with plugin name
49+
mkdir -p astrbot_plugin_jm_cosmos
50+
51+
# Copy files to temp directory (excluding unwanted files)
52+
rsync -av --exclude='.git' \
53+
--exclude='.github' \
54+
--exclude='.venv' \
55+
--exclude='__pycache__' \
56+
--exclude='*.pyc' \
57+
--exclude='.ruff_cache' \
58+
--exclude='astrbot_plugin_jm_cosmos' \
59+
. astrbot_plugin_jm_cosmos/
60+
61+
# Create zip with the directory as root
62+
zip -r "$ARCHIVE_NAME" astrbot_plugin_jm_cosmos
63+
64+
# Cleanup
65+
rm -rf astrbot_plugin_jm_cosmos
5566
5667
- name: Publish GitHub Release
5768
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)