chore(deps): update all non-major dependencies #127
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
# workflow 工作流的名字,自定义 | |
name: publish | |
# 配置触发条件 | |
on: | |
push: # 监听到分支的 push 动作 | |
branches: | |
- master | |
# 工作流的任务集配置 | |
jobs: | |
# 定义一个 job,id 为 build | |
build: | |
name: Build | |
# 指定任务执行的运行器。latest 表示是 GitHub 提供的最新稳定映像,但可能不是操作系统供应商提供的最新版本。 | |
runs-on: ubuntu-latest | |
# 定义 job 的具体步骤 | |
steps: # 每一个 step 或者是执行一个 action,或者是执行一个命令 | |
- name: Checkout # 定义 step 的名字,方便作日志排查 | |
uses: actions/checkout@v4 # uses 表示该步骤使用一个 action 。斜线前面的 'actions' 表示这是官方的action | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Install and Build | |
run: | | |
pnpm install | |
pnpm build | |
- name: Rsync deploy | |
uses: easingthemes/ssh-deploy@main | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SERVER_PASS_PRODUCTION }} | |
ARGS: "-rltgoDzvO --delete" | |
SOURCE: "./docs/.vitepress/dist/*" | |
REMOTE_HOST: ${{ secrets.SERVER_HOST_PRODUCTION }} | |
REMOTE_USER: ${{ secrets.SERVER_USER_PRODUCTION }} | |
TARGET: "/var/www/docs" | |
EXCLUDE: ".git*" |