Skip to content

Update by Trilium: source/_posts/p9jg2rdyqfmp.md #21

Update by Trilium: source/_posts/p9jg2rdyqfmp.md

Update by Trilium: source/_posts/p9jg2rdyqfmp.md #21

Workflow file for this run

name: Deploy Hexo Blog
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install Dependencies
run: |
npm install hexo-cli -g
npm install
- name: Generate Static Files
run: hexo generate
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
force_orphan: true