-
Notifications
You must be signed in to change notification settings - Fork 1
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
d0033c9
commit 49333e1
Showing
1 changed file
with
14 additions
and
5 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 |
---|---|---|
|
@@ -44,10 +44,19 @@ jobs: | |
with: | ||
# Upload entire repository | ||
path: './_site/' | ||
EXTERNAL_REPOSITORY: yanglilab/yanglilab.github.io | ||
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | ||
PUBLISH_BRANCH: main | ||
commit_message: ${{ github.event.head_commit.message }} | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
uses: actions/deploy-pages@v2 | ||
- name: Push to yangli.github.io | ||
run: | | ||
git config --global user.name 'yanglilab' | ||
git config --global user.email '[email protected]' | ||
git clone https://github.com/yanglilab/yanglilab.github.io.git yangli-pages | ||
rm -rf yangli-pages/* # 小心使用此命令,它会删除所有文件 | ||
cp -r ./_site/* yangli-pages/ | ||
cd yangli-pages | ||
git add . | ||
git commit -m "Deploy site updates" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} |