Skip to content

Commit

Permalink
Hopefully fixes deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkar598 committed Jun 23, 2023
1 parent bd3a83a commit 7751852
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,21 @@ jobs:
- name: Create workdir
run: |
git fetch origin dist
git worktree add $HOME/distbranch origin/dist
touch $HOME/distbranch/.nojekyll
git worktree add --detach $HOME/distbranch origin/dist
cd $HOME/distbranch
git checkout --orphan tmp-deploy
touch .nojekyll
- name: Copy files
run: |
cp ./dist/* $HOME/distbranch -R
cp $GITHUB_WORKSPACE/dist/* . -R
- name: Deploy to Github
run: |
cd $HOME/distbranch
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add *
git add .
git commit -m "Update dist"
git pull --rebase origin dist
git push origin HEAD:dist
git push origin HEAD:dist --force

0 comments on commit 7751852

Please sign in to comment.