Skip to content

Commit 8db687a

Browse files
committed
GitHub Actions: Modify release script
1 parent 70dfc21 commit 8db687a

1 file changed

Lines changed: 9 additions & 23 deletions

File tree

.github/workflows/trunk-release-tag.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -74,35 +74,21 @@ jobs:
7474
echo $changelog
7575
echo "::set-output name=changes::$changelog"
7676
77-
- name: Remove unneccesary assets
77+
- name: Create plugin directory
7878
working-directory: ./
7979
run: |
80-
mv docs/changelog.txt ./changelog.txt
81-
mv docs/readme.txt ./readme.txt
82-
rm -rf node_modules
83-
rm -rf src
84-
rm -rf .git
85-
rm -rf .github
86-
rm -rf docs
87-
rm -rf vendor
88-
rm -rf .editorconfig
89-
rm -rf .eslintignore
90-
rm -rf .eslintrc.js
91-
rm -rf .gitignore
92-
rm -rf .jscsrc
93-
rm -rf .wp-env.json
94-
rm -rf composer.json
95-
rm -rf composer.lock
96-
rm -rf package.json
97-
rm -rf package-lock.json
98-
rm -rf phpcs.xml.dist
99-
rm -rf README.md
80+
mkdir ./string-locator
81+
mv ./string-locator.php ./string-locator/
82+
mv ./uninstall.php ./string-locator/
83+
mv docs/changelog.txt ./string-locator/changelog.txt
84+
mv docs/readme.txt ./string-locator/readme.txt
85+
mv build ./string-locator/
86+
mv includes ./string-locator/
87+
mv views ./string-locator/
10088
10189
- name: Package build
10290
working-directory: ./
10391
run: |
104-
mkdir string-locator
105-
ls | grep -v string-locator/ | xargs mv -t string-locator
10692
zip -r string-locator string-locator
10793
10894
- name: Create release

0 commit comments

Comments
 (0)