网站部署 #16
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: 网站部署 | |
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 }} |