forked from wet-boew/GCWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
adbddaa
commit bc49500
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ jobs: | |
# Remove gh-pages directory if it exists | ||
if [ -d "$GHPAGES_PATH" ]; then | ||
rm -rf "$GHPAGES_PATH" | ||
rm -rf "$GHPAGES_PATH" | ||
fi | ||
# Reinitialize the gh-pages branch with a clean history | ||
|
@@ -62,9 +62,16 @@ jobs: | |
git rm -rf . | ||
touch .nojekyll | ||
git add .nojekyll | ||
# Set Git user identity for commits in this environment | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
# Commit and push to initialize the gh-pages branch | ||
git commit -m "Reinitialize gh-pages branch" | ||
git push --force origin gh-pages | ||
# Step 6: Force Push to gh-pages Branch with Authentication | ||
- name: Configure Remote with GitHub Token | ||
run: | | ||
|