Skip to content

build(deps-dev): bump the dev-dependencies group with 7 updates (#49) #61

build(deps-dev): bump the dev-dependencies group with 7 updates (#49)

build(deps-dev): bump the dev-dependencies group with 7 updates (#49) #61

Workflow file for this run

name: Deploy
on:
# master 分支 push 时触发
push:
branches: ["main"]
# 允许通过手动触发
workflow_dispatch:
# 设置权限
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
# 更换了别的服务商所以暂时阻止整个作业执行
if: contains(github.event.head_commit.message, '[ci]')
# 虚拟机
runs-on: ubuntu-latest
steps:
# 检出代码
- name: Checkout
uses: actions/checkout@v4
# 安装 pnpm
- name: Install pnpm
uses: pnpm/[email protected]
# 设置 node 环境
- name: Set node version to 18
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: "pnpm"
# 安装依赖
- name: Install dependencies
run: pnpm install
# 打包
- name: Build
run: pnpm run build
# 配置 GitHub Pages
- name: Configure GitHub Pages
uses: actions/configure-pages@v4
# 将打包的 dist 上传
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
# 部署
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4