Skip to content

Update Blog

Update Blog #1177

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Update Blog
on:
push:
branches: '*'
schedule:
- cron: '0 16 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- run: npm install hexo-cli -g
- run: npm ci
- run: npm install hexo
- run: git submodule update --init --recursive
- run: git submodule update --recursive --remote
- run: hexo clean
- run: hexo algolia
env:
HEXO_ALGOLIA_INDEXING_KEY: ${{ secrets.HEXO_ALGOLIA_INDEXING_KEY }}
- run: hexo generate
- run: hexo deploy
env:
BAIDU_TOKEN: ${{ secrets.BAIDU_TOKEN }}
BING_TOKEN: ${{ secrets.BING_TOKEN }}
UPYUN_OPERATOR: ${{ secrets.UPYUN_OPERATOR }}
UPYUN_PASSWORD: ${{ secrets.UPYUN_PASSWORD }}