Skip to content

网站部署

网站部署 #16

Workflow file for this run

name: 网站部署
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: 配置 Node.js 环境
uses: actions/[email protected]
with:
node-version: '20'
- name: 安装 pnpm
run: npm install -g pnpm
- name: pnpm 依赖处理
run: pnpm install
- name: 构建dist
run: pnpm run build
- name: 部署
run: pnpm run deploy:directly
env:
CREDENTIALS_JSON: ${{ secrets.JSON_STRING }}