Skip to content

Commit e6f7dbc

Browse files
authored
Internal: Fix theme deployment scripts [TMZ-803] (#586)
1 parent 74e348a commit e6f7dbc

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/scripts/publish-theme-to-wordpress-org-dry-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ echo "DRY RUN: Would add new files"
6363
svn status 2>/dev/null | grep -v '^.[ \t]*\\..*' | { grep '^?' || true; } | awk '{print $2}' | sed 's|^| Would add: |' || true
6464

6565
echo ""
66-
echo "📊 **SVN Status Summary (what would be committed):**"
66+
echo "SVN Status Summary (what would be committed):"
6767
echo "=========================================="
6868
SVN_STATUS=$(svn status 2>/dev/null || echo "")
6969
TOTAL_CHANGES=0

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ jobs:
5757
uses: actions/upload-artifact@v4
5858
with:
5959
name: hello-elementor
60-
path: hello-elementor
60+
path: hello-elementor.*.zip
6161
retention-days: 7

.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121

2222
deploy:
2323
needs: build
24+
if: needs.build.result == 'success'
2425
runs-on: ubuntu-latest
2526
steps:
2627
- name: Checkout repository
@@ -32,6 +33,12 @@ jobs:
3233
uses: actions/download-artifact@v4
3334
with:
3435
name: hello-elementor
36+
- name: Extract Hello Theme build
37+
run: |
38+
HT_ZIP=$(find . -name "hello-elementor-*.zip" -o -name "hello-elementor.*.zip" -type f | head -1)
39+
unzip -q "$HT_ZIP" -d ./tmp/
40+
mv ./tmp/hello-elementor ./hello-elementor
41+
rm -rf ./tmp
3542
- name: Validate changelog
3643
env:
3744
VERSION: ${{ env.THEME_VERSION }}

0 commit comments

Comments
 (0)