chore(blog): update theme #28
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 Blog | |
on: | |
push: | |
branches: main | |
paths: "blog/**" | |
workflow_dispatch: | |
jobs: | |
deploy-gh-pages: | |
name: Deploy blog to gh pages | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: blog | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
cache-dependency-path: blog/pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build project | |
run: pnpm run build | |
- name: Deploy site | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
repository-name: yorunning/blog | |
branch: gh-pages | |
folder: blog/public | |
token: ${{ secrets.ACCESS_TOKEN }} | |
single-commit: true |