|
1 | | -# This workflow runs continuous integration checks on the EngineScript Simple Site Exporter plugin. |
2 | | -# It performs code linting for both PHP and JavaScript files and builds the plugin package. |
| 1 | +# This workflow runs continuous integration checks on the Simple WP Site Exporter plugin. |
| 2 | +# It performs code linting for both PHP and JavaScript files and builds t mkdir -p build/simple-wp-site-exporter |
| 3 | + |
| 4 | + # Copy main plugin files |
| 5 | + cp simple-site-exporter.php build/simple-wp-site-exporter/lugin package. |
3 | 6 | # The workflow is triggered on push to main branch and on pull requests to ensure code quality. |
4 | 7 | # It creates and stores a plugin zip file as an artifact that can be used for testing. |
5 | 8 |
|
@@ -161,29 +164,29 @@ jobs: |
161 | 164 | |
162 | 165 | - name: Create plugin package |
163 | 166 | run: | |
164 | | - mkdir -p build/enginescript-simple-site-exporter |
| 167 | + mkdir -p build/simple-wp-site-exporter |
165 | 168 | |
166 | 169 | # Copy main plugin file |
167 | | - cp simple-site-exporter.php build/enginescript-simple-site-exporter/ |
| 170 | + cp simple-site-exporter.php build/simple-wp-site-exporter/ |
168 | 171 | |
169 | 172 | # Copy directories if they exist |
170 | | - [ -d assets ] && cp -r assets build/enginescript-simple-site-exporter/ || echo "No assets directory found" |
171 | | - [ -d includes ] && cp -r includes build/enginescript-simple-site-exporter/ || echo "No includes directory found" |
172 | | - [ -d languages ] && cp -r languages build/enginescript-simple-site-exporter/ || echo "No languages directory found" |
173 | | - [ -d templates ] && cp -r templates build/enginescript-simple-site-exporter/ || echo "No templates directory found" |
| 173 | + [ -d assets ] && cp -r assets build/simple-wp-site-exporter/ || echo "No assets directory found" |
| 174 | + [ -d includes ] && cp -r includes build/simple-wp-site-exporter/ || echo "No includes directory found" |
| 175 | + [ -d languages ] && cp -r languages build/simple-wp-site-exporter/ || echo "No languages directory found" |
| 176 | + [ -d templates ] && cp -r templates build/simple-wp-site-exporter/ || echo "No templates directory found" |
174 | 177 | |
175 | 178 | # Copy additional files if they exist |
176 | | - [ -f readme.txt ] && cp readme.txt build/enginescript-simple-site-exporter/ || echo "No readme.txt found" |
177 | | - [ -f README.md ] && cp README.md build/enginescript-simple-site-exporter/ || echo "No README.md found" |
178 | | - [ -f CHANGELOG.md ] && cp CHANGELOG.md build/enginescript-simple-site-exporter/ || echo "No CHANGELOG.md found" |
179 | | - [ -f LICENSE ] && cp LICENSE build/enginescript-simple-site-exporter/ || echo "No LICENSE file found" |
| 179 | + [ -f readme.txt ] && cp readme.txt build/simple-wp-site-exporter/ || echo "No readme.txt found" |
| 180 | + [ -f README.md ] && cp README.md build/simple-wp-site-exporter/ || echo "No README.md found" |
| 181 | + [ -f CHANGELOG.md ] && cp CHANGELOG.md build/simple-wp-site-exporter/ || echo "No CHANGELOG.md found" |
| 182 | + [ -f LICENSE ] && cp LICENSE build/simple-wp-site-exporter/ || echo "No LICENSE file found" |
180 | 183 | |
181 | 184 | # Create zip file |
182 | 185 | cd build |
183 | | - zip -r enginescript-simple-site-exporter.zip enginescript-simple-site-exporter |
| 186 | + zip -r simple-wp-site-exporter.zip simple-wp-site-exporter |
184 | 187 | |
185 | 188 | - name: Upload build artifact |
186 | 189 | uses: actions/upload-artifact@v4 |
187 | 190 | with: |
188 | | - name: enginescript-simple-site-exporter |
189 | | - path: build/enginescript-simple-site-exporter.zip |
| 191 | + name: simple-wp-site-exporter |
| 192 | + path: build/simple-wp-site-exporter.zip |
0 commit comments