diff --git a/.github/workflows/demo-build.yml b/.github/workflows/demo-build.yml index a25c45fa2e9..a41ec2d5787 100644 --- a/.github/workflows/demo-build.yml +++ b/.github/workflows/demo-build.yml @@ -56,8 +56,17 @@ jobs: git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository_owner }}/ramp4-pcar4 git push -u origin demo-page echo "Orphan branch 'demo-page' has been created and pushed to origin." + cd ../ + # Will be properly checked out in the next step + rm -rf demo-page fi + - uses: actions/checkout@v4 + with: + ref: demo-page + path: demo-page + fetch-depth: 0 + - name: Remove the old demo if it exists and make docs folder run: | rm -rf demo-page/${{ github.ref_name }}