Skip to content

Commit

Permalink
chore(fe): fix yml
Browse files Browse the repository at this point in the history
  • Loading branch information
huccct committed Jul 11, 2024
1 parent c9ffae4 commit 1bbaf45
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# ci.yml
name: Vue Admin
on:
push:
branches:
- main
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️ # 将代码拉取到虚拟机
uses: actions/checkout@v3
# # ci.yml
# name: Vue Admin
# on:
# push:
# branches:
# - main
# jobs:
# build-and-deploy:
# concurrency: ci-${{ github.ref }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️ # 将代码拉取到虚拟机
# uses: actions/checkout@v3

- name: Install pnpm
run: npm i pnpm@7 -g
# - name: Install pnpm
# run: npm i pnpm@7 -g

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
# - uses: actions/setup-node@v3
# with:
# node-version: '16'
# cache: 'pnpm'

- name: Install and Build 🔧 # 安装依赖、打包,如果提前已打包好无需这一步
run: |
pnpm install
pnpm build
# - name: Install and Build 🔧 # 安装依赖、打包,如果提前已打包好无需这一步
# run: |
# pnpm install
# pnpm build

- name: Deploy 🚀 # 部署
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages # 部署后提交到那个分支
folder: dist # 这里填打包好的目录名称
# - name: Deploy 🚀 # 部署
# uses: JamesIves/github-pages-deploy-action@v4.3.3
# with:
# branch: gh-pages # 部署后提交到那个分支
# folder: dist # 这里填打包好的目录名称

0 comments on commit 1bbaf45

Please sign in to comment.