Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingLiu committed Mar 30, 2024
1 parent d0033c9 commit 49333e1
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 49333e1

Please sign in to comment.