File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments