Skip to content

Merge pull request #19 from inpageedit/bhsd-harry/CM6 #60

Merge pull request #19 from inpageedit/bhsd-harry/CM6

Merge pull request #19 from inpageedit/bhsd-harry/CM6 #60

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Auto Deploy Site
on:
push:
branches:
- master
jobs:
build:
# 使用最新版ubantu虚拟机运行
runs-on: ubuntu-latest
steps:
# from: https://github.com/actions/checkout
- name: 本工作流
uses: actions/checkout@master
# 安装最新版 Node.js
# from: https://github.com/actions/setup-node
- name: 安装 Node.js
uses: actions/setup-node@master
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: 安装包管理器
run: |
npm i -g pnpm
- name: 安装项目依赖
run: |
pnpm i
- name: 构建项目
run: |
pnpm build
- name: 部署到 ghpage
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: ghpage
publish_dir: ./dist
force_orphan: true