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