This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
Add AGI note and resources #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BlogCI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Source file | |
uses: actions/checkout@main | |
# with: | |
# ref: source # Specify the name of the branch where you store Hexo source files | |
- name: Prepare Node env | |
uses: actions/setup-node@main | |
with: | |
node-version: "20.x" # This corresponds to your own nodejs version (10.12 tested well) | |
- name: Set Env | |
env: | |
TOKEN: ${{ secrets.TOKEN }} | |
run: | | |
git config --global user.name 'Jianliang-Shen' | |
git config --global user.email '[email protected]' | |
sed -i "s/TOKEN/$TOKEN/g" ./_config.yml | |
- name: Hexo | |
run: | | |
npm install hexo -g | |
rm -rf node_modules && npm install --force | |
hexo clean && hexo g && hexo d |