Skip to content

Create 标日中级下册——第32课-思い出の場所-关联词语-计数.md #2159

Create 标日中级下册——第32课-思い出の場所-关联词语-计数.md

Create 标日中级下册——第32课-思い出の場所-关联词语-计数.md #2159

Workflow file for this run

name: Hexo Auto-Deploy
on:
push:
branches:
- master
jobs:
build:
name: Hexo Auto-Deploy by GitHub Actions
runs-on: ubuntu-latest
steps:
- name: 1. git checkout...
uses: actions/checkout@v3
- name: 2. setup nodejs...
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: 3. Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- name: 4. Install hexo dependencies
run: |
npm install hexo-cli -g
npm install
- name: 5. hexo generate public files...
run: |
hexo clean
hexo generate
- name: 6. hexo deploy ...
env:
# Github 仓库
GITHUB_REPO: github.com/PGzxc/PGzxc.github.io.git
# Coding 仓库
CODING_REPO: e.coding.net/pgzxc/pgzxc/pgzxc.git
# 将编译后的博客文件推送到指定仓库
run: |
cd ./public && git init && git add .
git config user.name "PGzxc"
git config user.email "[email protected]"
git add .
git commit -m "GitHub Actions Auto Builder at $(date +'%Y-%m-%d %H:%M:%S')"
git push --force --quiet "https://${{ secrets.ACCESS_TOKEN }}@$GITHUB_REPO" master:hexo
# git push --force --quiet "https://JcwUpKlfjB:${{ secrets.CODING_TOKEN }}@$CODING_REPO" master:hexo