feat: 添加文章 #25
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: Hexo runner | |
on: | |
push: | |
branches: | |
- source | |
jobs: | |
build: | |
name: Build and deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install | |
uses: borales/[email protected] | |
with: | |
cmd: install | |
- name: Build | |
uses: borales/[email protected] | |
with: | |
cmd: build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
force_orphan: true | |
- name: Archive blog artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: blog-site-files | |
path: public |