Skip to content

Commit e6b5db1

Browse files
committed
ci: update ci
1 parent 58ee77a commit e6b5db1

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Vercel Deployment Development
2+
3+
env:
4+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
# This is what will cancel the workflow
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
Deploy-Deployment:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Setup Continuous integration
22+
uses: ./.github/cache
23+
- name: Install Vercel CLI
24+
run: pnpm install --global vercel@latest
25+
- name: Pull Vercel Environment Information
26+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
27+
- name: Build Project Artifacts
28+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
29+
- name: Deploy Project Artifacts to Vercel
30+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
31+
32+
# - name: Notify Discord
33+
# if: failure()
34+
# uses: hunghg255/action-notifications@master
35+
# with:
36+
# discord_webhook: ${{ secrets.CI_CD_DISCORD_URL }}
37+
# title: "Deploy dev failed"
38+
# qrcode: https://dev-web.degenpark.io
39+
# description: "Test here: https://dev-web.degenpark.io"
40+
41+
# notifification:
42+
# needs: Deploy-Production
43+
# runs-on: ubuntu-latest
44+
# permissions:
45+
# packages: write
46+
# contents: read
47+
48+
# steps:
49+
# - uses: hunghg255/action-notifications@master
50+
# if: always()
51+
# with:
52+
# discord_webhook: ${{ secrets.CI_CD_DISCORD_URL }}
53+
# title: "Deploy dev successfully"
54+
# qrcode: https://dev-web.degenpark.io
55+
# description: "Test here: https://dev-web.degenpark.io"

0 commit comments

Comments
 (0)