Skip to content

Commit

Permalink
test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBurke committed Nov 7, 2024
1 parent 514e194 commit b423dfd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/demo-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ jobs:
# Ensure the gh-pages directory exists
mkdir -p ${{ github.workspace }}/gh-pages
# Copy the contents of ~sites and dist directly to the root of gh-pages
# Copy the contents of ~sites and dist directly to the root of gh-pages without retaining subdirectories
if [ -d "./~sites" ]; then
find ./~sites -mindepth 1 -exec mv -t ${{ github.workspace }}/gh-pages {} +
rsync -av --remove-source-files --exclude='*/' ./~sites/ ${{ github.workspace }}/gh-pages/
fi
if [ -d "./dist" ]; then
find ./dist -mindepth 1 -exec mv -t ${{ github.workspace }}/gh-pages {} +
rsync -av --remove-source-files --exclude='*/' ./dist/ ${{ github.workspace }}/gh-pages/
fi
# Step 5: Initialize or Update gh-pages Branch
- name: Initialize or Update gh-pages Branch
run: |
Expand Down

0 comments on commit b423dfd

Please sign in to comment.