Skip to content

Commit 4433170

Browse files
committed
Use a widlcard check for the zip (since it will have a version string)
1 parent e852ebd commit 4433170

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/deploy-on-release-to-instawp.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,17 @@ jobs:
4848
- name: Build plugin zip
4949
run: npm run dist
5050

51+
- name: List files before deploy
52+
run: |
53+
echo "Current working directory:"
54+
pwd
55+
echo "Listing all files recursively:"
56+
find . -type f | sort
57+
5158
- name: Deploy to InstaWP
5259
run: |
5360
API_KEY=${{ secrets.INSTAWP_API_KEY }}
54-
PLUGIN_ZIP="dist/accessibility-checker.zip"
61+
PLUGIN_ZIP=$(ls dist/accessibility-checker-*.zip | head -n 1)
5562
SITE_ID=${{ secrets.INSTAWP_SITE_ID }}
5663
curl -X POST "https://api.instawp.io/v2/sites/install-plugin" \
5764
-H "Authorization: Bearer $API_KEY" \

0 commit comments

Comments
 (0)