File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,33 +35,42 @@ jobs:
3535 - name : Build assets
3636 run : npm run build
3737
38- - name : Create build directory
39- run : mkdir -p build/dubinc
38+ - name : Create plugin directory for zip
39+ run : |
40+ mkdir -p /tmp/dubinc
4041
4142 - name : Copy plugin files
4243 run : |
43- rsync -rc --exclude-from=".distignore" . build/dubinc/ \
44- --exclude=build \
44+ rsync -rc . /tmp/dubinc/ \
4545 --exclude=.git \
4646 --exclude=.github \
4747 --exclude=node_modules \
4848 --exclude=assets/js \
4949 --exclude=assets/css \
5050 --exclude=.gitignore \
51+ --exclude=.gitattributes \
5152 --exclude=.editorconfig \
5253 --exclude=.eslintrc.json \
5354 --exclude=.eslintignore \
5455 --exclude=.lintstagedrc.json \
56+ --exclude=.distignore \
5557 --exclude=ruleset.xml \
5658 --exclude=package.json \
5759 --exclude=package-lock.json \
5860 --exclude=composer.lock \
59- --exclude=README.md
61+ --exclude=README.md \
62+ --exclude=.DS_Store \
63+ --exclude=Thumbs.db
6064
61- - name : Create zip file
65+ - name : Create zip file with proper structure
66+ run : |
67+ cd /tmp
68+ zip -r $GITHUB_WORKSPACE/dubinc.zip dubinc
69+
70+ - name : Verify zip structure
6271 run : |
63- cd build
64- zip -r ../ dubinc.zip dubinc
72+ echo "Zip contents:"
73+ unzip -l dubinc.zip | head -20
6574
6675 - name : Get version from tag
6776 id : get_version
You can’t perform that action at this time.
0 commit comments