Skip to content

test: ci

test: ci #11

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- main
paths-ignore: # 下列文件的变更不触发部署
- LICENSE
- README.md
schedule:
- cron: '0 6,18 * * *'
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Modify README.md
uses: jaywcjlove/github-action-modify-file-content@main
with:
path: README.md
body: '{{date:YYYY-MM-DD HH:mm:ss}}'
- name: Build 🔧
run: |
pnpm run get
pnpm run build
pnpm run generate
ls -lrth
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DEPLOY_TOKEN }}
publish_dir: ./.output/public
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com