-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(PR-build): peaceiris/actions-gh-pages@v4 を用いてアップロード
- Loading branch information
1 parent
69053d1
commit d6c39f5
Showing
3 changed files
with
20 additions
and
18 deletions.
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
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
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,21 +52,10 @@ elif [[ $1 == --pull ]]; then | |
exit 2 | ||
fi | ||
|
||
[email protected]:cpprefjp/site.git | ||
working_directory=cpprefjp/cpprefjp.github.io-site | ||
|
||
git remote add origin2 "$target_repository" | ||
git clone --depth=1 [email protected]:cpprefjp/site.git -b gh-pages "$working_directory" | ||
rm -rf "$working_directory/pull/$2" | ||
mkdir -p "$working_directory/pull/$2" | ||
cp -r cpprefjp/cpprefjp.github.io/* "$working_directory/pull/$2"/ | ||
pushd "$working_directory" | ||
git add ./ --all | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "cpprefjp-autoupdate" | ||
git commit -a -m "update automatically" | ||
git push origin2 gh-pages | ||
popd | ||
|
||
else | ||
printf '%s\n' "build.sh: コマンドライン引数が認識できません: $1" >&2 | ||
|