Skip to content

chore: update theme version and config #107

chore: update theme version and config

chore: update theme version and config #107

Workflow file for this run

name: Deploy
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.15.1]
ruby-version: [2.7.3]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: prepare build environment
env:
GH_ACTION_DEPLOY_KEY: ${{secrets.GH_ACTION_DEPLOY_KEY}}
run: |
mkdir -p ~/.ssh/
echo "$GH_ACTION_DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config --global user.name 'chaosky'
git config --global user.email 'chaosky.me@gmail.com'
git submodule update --init
npm install hexo-cli -g
npm install
- name: deploy to github
run: |
hexo d -g
env:
CI: true