Skip to content

Commit

Permalink
fix: 修复Github Release异常
Browse files Browse the repository at this point in the history
  • Loading branch information
chu fan committed Sep 28, 2023
1 parent 65c3d77 commit c3de0ba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/CD.yaml
Expand Up @@ -85,7 +85,7 @@ jobs:
deploy-vercel:
name: "部署到Vercel平台"
needs: install-init
runs-on: ubuntu-latest
runs-on: macos-latest
if: github.repository == '142vip/408CSFamily'
steps:
- name: Checkout Code
Expand All @@ -105,7 +105,7 @@ jobs:

## 注意:安装pnpm
- name: Build Project Artifacts
run: npm i pnpm -g && vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Expand All @@ -119,6 +119,11 @@ jobs:
if: github.repository == '142vip/408CSFamily' && startsWith(github.event.head_commit.message, 'chore(release):')

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0

### 打成压缩包
- name: Create Zip Package
Expand Down

0 comments on commit c3de0ba

Please sign in to comment.