Skip to content

Commit

Permalink
add gh-pages branch if doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielrz committed Jan 4, 2024
1 parent 8fade01 commit d3de8f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
- name: Build the app
run: npm run build

- name: Create gh-pages branch
run: |
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "add gh-pages branch"
git push origin gh-pages
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
Expand Down

0 comments on commit d3de8f6

Please sign in to comment.