Skip to content

Commit

Permalink
Update cd_pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arpita0911patel committed May 17, 2024
1 parent a25f306 commit 211b1a8
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/cd_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,7 @@ jobs:
branch: main
name: build
path: ./build/
- name: Ensure clean worktree state
run: |
git worktree prune
git worktree list
if git worktree list | grep -q 'github-pages-deploy-action-temp-deployment-folder'; then
echo "Removing existing temp deployment folder"
git worktree remove github-pages-deploy-action-temp-deployment-folder --force
fi
if git worktree list | grep -q '\[main\]'; then
echo "Removing existing main worktree"
git worktree remove $(git worktree list | grep '\[main\]' | awk '{print $1}') --force
fi


- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
Expand All @@ -89,9 +78,4 @@ jobs:
repository-name: CIROH-UA/ciroh-ua.github.io
#tag: $VERSION

- name: Final cleanup
run: |
git worktree prune
if [ -d "github-pages-deploy-action-temp-deployment-folder" ]; then
rm -rf github-pages-deploy-action-temp-deployment-folder
fi

0 comments on commit 211b1a8

Please sign in to comment.