From 592ab87af4c0d4be21a451977664bab05a47dbe1 Mon Sep 17 00:00:00 2001 From: aman035 Date: Thu, 21 Nov 2024 16:35:57 +0530 Subject: [PATCH] fix: deploy --- .github/workflows/deploy.yml | 12 ++++++++++++ examples/email/index.html | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e07f5355..849f1bb8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,6 +33,18 @@ jobs: mkdir -p ../../gh-pages/${{ matrix.app }} cp -R dist/* ../../gh-pages/${{ matrix.app }} + - name: Checkout existing gh-pages + uses: actions/checkout@v3 + with: + ref: gh-pages + path: gh-pages-existing + + - name: Merge new builds with existing + run: | + cp -R gh-pages-existing/* gh-pages || true + cp -R gh-pages/* gh-pages-existing + mv gh-pages-existing gh-pages + - name: Deploy to GitHub Pages if: ${{ matrix.app == 'core-connection' }} # Deploy after the last app uses: peaceiris/actions-gh-pages@v3 diff --git a/examples/email/index.html b/examples/email/index.html index e4b78eae..e851b626 100644 --- a/examples/email/index.html +++ b/examples/email/index.html @@ -1,10 +1,10 @@ - + - Vite + React + TS + Email