Skip to content

Commit

Permalink
Checkout demo-page in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
milespetrov committed Sep 4, 2024
1 parent 80c9d29 commit d4a07ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/demo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d4a07ef

Please sign in to comment.