Skip to content

Commit

Permalink
Simplify vercel action
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa authored Jul 16, 2024
1 parent c711b22 commit 532c401
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: darwinia-network/devops
path: .github

- uses: actions/setup-node@v3
with:
node-version: 16
Expand All @@ -31,7 +26,7 @@ jobs:
mv vercel.json build/
mv api build/
- uses: ./.github/actions/smart-vercel
- uses: darwinia-network/devops/actions/smart-vercel@main
name: Deploy to Vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: darwinia-network/devops
path: .github

- uses: actions/setup-node@v3
with:
node-version: 16
Expand All @@ -32,7 +27,7 @@ jobs:
mv vercel.json build/
mv api build/
- uses: ./.github/actions/smart-vercel
- uses: darwinia-network/devops/actions/smart-vercel@main
name: Deploy to Vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: darwinia-network/devops
path: .github

- uses: actions/setup-node@v3
with:
node-version: 16
Expand All @@ -31,9 +26,8 @@ jobs:
mv vercel.json build/
mv api build/
- uses: ./.github/actions/smart-vercel
- uses: darwinia-network/devops/actions/smart-vercel@main
name: Deploy to Vercel
id: smart-vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
Expand Down

0 comments on commit 532c401

Please sign in to comment.