Skip to content

Commit

Permalink
时间更改
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjiansu committed May 29, 2024
1 parent e41d146 commit b789eaf
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,17 @@ jobs:
env:
HEXO_DEPLOY_PRI: ${{secrets.HEXO_DEPLOY_PRI}}
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
mkdir -p ~/.ssh
echo "$HEXO_DEPLOY_PRI" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config --global user.name $GIT_USER
git config --global user.email $GIT_EMAIL
- name: Install Dependencies
- name: Install dependencies
run: |
npm i -g hexo-cli
npm install hexo-deployer-git --save
npm i
npm install
- name: Generate static blog file
run: |
hexo generate
- name: Deploy to github page
- name: Deploy hexo
run: |
hexo deploy
npm run deploy

0 comments on commit b789eaf

Please sign in to comment.