modify blog_title, slogan.api, ground_glass and text white space #15
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: Deploy Hexo | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup Git | |
run: | | |
git config --global user.name "mobeicanyue" | |
git config --global user.email "${{ secrets.EMAIL }}" | |
- name: Setup SSH Key | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.KEY }}" > ~/.ssh/id_ed25519 | |
chmod 600 ~/.ssh/id_ed25519 | |
- name: Install Dependencies | |
run: | | |
npm install -g hexo-cli | |
npm install hexo-deployer-git --save | |
npm install | |
- name: Build Site | |
run: | | |
export TZ='Asia/Shanghai' | |
npm run build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.KEY }} | |
publish_dir: public | |
cname: blog.ovvv.top |