Skip to content

Commit

Permalink
Updated CICD for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishvanand committed Oct 30, 2023
1 parent 5e9a21a commit 3c3d7f7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,19 @@ jobs:
- name: Build project
run: npm run build

# Clean gh-pages branch
- name: Checkout gh-pages branch and delete all content
run: |
git fetch
git checkout gh-pages
git rm -rf *
git commit -m "Clean up gh-pages branch"
git checkout $GITHUB_REF
# Push new content to gh-pages
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
clean: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
folder: build
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit 3c3d7f7

Please sign in to comment.