feat: add workflows to dev and main branch #1

Merged
LufsX merged 7 commits from dev into main 2024-12-23 01:39:12 +08:00
2 changed files with 11 additions and 5 deletions
Showing only changes of commit 794c28005c - Show all commits
@@ -1,4 +1,9 @@
name: Vercel Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
@@ -14,12 +19,11 @@ jobs:
fetch-depth: 0
- name: Install Vercel CLI
run: |
npm config get registry
npm config set registry https://registry.npmmirror.com
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
npm install --global vercel@latest
ls
# - name: Pull Vercel Environment Information
# run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
+2
View File
@@ -39,3 +39,5 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
.vercel