-
Notifications
You must be signed in to change notification settings - Fork 60
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
Showing
13 changed files
with
32 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,8 @@ jobs: # 工作流 | |
echo "StrictHostKeyChecking no" >> ~/.ssh/config | ||
- name: Push Gitee Mirror #★★★★★★步骤4:推送到gitee | ||
env: | ||
SOURCE_REPO: 'https://github.com/oddfar/docs.git' | ||
DESTINATION_REPO: '[email protected]:oddfar/docs.git' | ||
SOURCE_REPO: 'https://github.com/oddfar/notes.git' | ||
DESTINATION_REPO: '[email protected]:oddfar/notes.git' | ||
run: | | ||
git clone --mirror "$SOURCE_REPO" && cd `basename "$SOURCE_REPO"` | ||
git remote set-url --push origin "$DESTINATION_REPO" | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ initDist(){ | |
#------------------------------------------ | ||
|
||
#url访问目录,这个是你 github 仓库的名字 | ||
initDist "module.exports = '/docs/'" | ||
initDist "module.exports = '/notes/'" | ||
|
||
# 生成静态文件 | ||
npm run build | ||
|
@@ -23,11 +23,11 @@ cd docs/.vuepress/dist | |
if [ -z "$GITHUB_TOKEN" ]; then | ||
# 手动部署 | ||
msg='deploy' | ||
[email protected]:oddfar/docs.git | ||
[email protected]:oddfar/notes.git | ||
else | ||
# 自动部署 | ||
msg='来自github actions的自动部署' | ||
githubUrl=https://oddfar:${GITHUB_TOKEN}@github.com/oddfar/docs.git | ||
githubUrl=https://oddfar:${GITHUB_TOKEN}@github.com/oddfar/notes.git | ||
git config --global user.name "oddfar" | ||
git config --global user.email "[email protected]" | ||
fi | ||
|
@@ -54,7 +54,7 @@ else | |
# 进入生成的文件夹 | ||
cd docs/.vuepress/dist | ||
|
||
[email protected]:oddfar/docs.git #gitee 仓库ssh地址 | ||
[email protected]:oddfar/notes.git #gitee 仓库ssh地址 | ||
|
||
git config --global user.name "oddfar" | ||
git config --global user.email "[email protected]" | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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