Skip to content

Merge pull request #25 from JZYFC/dependabot/npm_and_yarn/hexo-theme-… #11

Merge pull request #25 from JZYFC/dependabot/npm_and_yarn/hexo-theme-…

Merge pull request #25 from JZYFC/dependabot/npm_and_yarn/hexo-theme-… #11

Workflow file for this run

name: 'Deploy hexo'
on:
push:
branches: [master]
jobs:
hexo-deployment:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: true
- name: Setup nodejs
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies
run: |
node -v
npm i -g hexo-cli
npm i
- name: Generate static files
run: |
hexo clean
hexo g
- name: Deploy to gh-pages branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: public
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}