Skip to content

Commit

Permalink
Update build action: add timezone and update information of git user
Browse files Browse the repository at this point in the history
  • Loading branch information
heqin-zhu committed Apr 28, 2020
1 parent bd796c4 commit 4aef83c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
python3 utils/genIndex.py
- name: git config
run: |
git config --global user.name "ustc-course"
git config --global user.email "ustc_course@163.com"
git config --global user.name "mbinary"
git config --global user.email "zhuheqin1@gmail.com"
- name: generate pages and push to gh-pages branch
env:
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
Expand All @@ -32,6 +32,7 @@ jobs:
git init
git remote add origin git@github.com:USTC-Resource/USTC-Course.git
git add --all
export TZ='Asia/Shanghai'
git commit -m "Update webpages at `date +%Y-%m-%d,%H:%m` UTC+8"
git push -f "https://${ACCESS_TOKEN}@github.com/USTC-Resource/USTC-Course" master:gh-pages

0 comments on commit 4aef83c

Please sign in to comment.