From bfffc15c93e2d00a5fa14e5982d9d19ba28d1c10 Mon Sep 17 00:00:00 2001 From: Luciano Ayres Date: Sat, 13 Jul 2024 15:41:40 -0300 Subject: [PATCH] fix: fix github action workflow --- .github/workflows/deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 69c6b2e..43ff7de 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,10 +15,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Switch to dist branch + - name: Delete remote dist branch run: | - git fetch - git switch dist || git checkout -b dist + git push origin --delete dist || true + + - name: Create and switch to new dist branch + run: | + git checkout -b dist + git push --set-upstream origin dist - name: Move content from src to root run: |