Skip to content

Commit 51adef2

Browse files
committed
ci(github): add with -f for deploy branch
1 parent ee7cdef commit 51adef2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ jobs:
6060
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
6161
run: |
6262
cd "${DEPLOY_DIR}"
63+
touch .nojekyll
6364
git config user.name "${GITHUB_ACTOR}" && \
6465
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \
65-
git add . && \
66+
git add -f . && \
6667
git commit --allow-empty -m "Build commit ${GITHUB_SHA}" && \
6768
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${DEPLOY_BRANCH}"

0 commit comments

Comments
 (0)