From b789eaf8e62a265b4f147c4c37a1bb6bd9d748a0 Mon Sep 17 00:00:00 2001 From: fengjiansu Date: Wed, 29 May 2024 23:02:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 069f397..b2f6876 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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