Skip to content

feat: Optimize search box #123

feat: Optimize search box

feat: Optimize search box #123

Workflow file for this run

name: Build HTML
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
# 不给权限会报错
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
- name: Sync
run: curl https://updates.travellings.cn/update?token=${{ secrets.SYNC_TOKEN }}