diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 73eb4ea..069f397 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -51,14 +51,13 @@ jobs: - name: Install Dependencies run: | - npm config get proxy - npm config get https-proxy - npm config set proxy null - npm config set https-proxy null - npm config set registry http://registry.cnpmjs.org/ + npm i -g hexo-cli + npm install hexo-deployer-git --save + npm i - npm install -g cnpm --registry=https://registry.npm.taobao.org - - - name: Deploy hexo + - name: Generate static blog file + run: | + hexo generate + - name: Deploy to github page run: | - npm run deploy + hexo deploy