Skip to content

Commit

Permalink
refactor(tooling-ci): connect vercel to git (#4766)
Browse files Browse the repository at this point in the history
* refactor(tooling-ci): remove apps ui kit ci workflows

* refactor(tooling-ci): remove apps apps backend ci workflows

* refactor(tooling-ci): update wallet dashbboard workflows to leave only manual production

Co-authored-by: JCNoguera <[email protected]>

* refactor(tooling-ci): update explorer workflows to leave only manual production

Co-authored-by: JCNoguera <[email protected]>

* feat: add vercel ignore build script and improve codeowners

* feat: add scripts for preview and all envs to use in vercel

* feat: add scripts for necessary vercel envs

* chore: add missing comments

* fix: remove unnecessary branches check script

* fix: rename file

* feat: add ignore brach to vercel.json

---------

Co-authored-by: JCNoguera <[email protected]>
Co-authored-by: JCNoguera <[email protected]>
  • Loading branch information
3 people authored Jan 16, 2025
1 parent ffd581a commit 6afee7e
Show file tree
Hide file tree
Showing 12 changed files with 106 additions and 449 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ vercel.json @iotaledger/tooling
/scripts/generate_files/ @muXxer
/scripts/codesearch/ @muXxer
/scripts/slipstream/ @muXxer
/scripts/tooling/ @iotaledger/tooling

# Disable code ownership for these auto-generated files
/Cargo.lock
Expand Down
96 changes: 0 additions & 96 deletions .github/workflows/_vercel_deploy.yml

This file was deleted.

78 changes: 0 additions & 78 deletions .github/workflows/apps_backend_deploy.yml

This file was deleted.

94 changes: 0 additions & 94 deletions .github/workflows/apps_explorer_deploy.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/apps_explorer_prod_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Production Deploy for Explorer

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.EXPLORER_VERCEL_PROJECT_ID }}

on: workflow_dispatch

jobs:
deploy:
permissions:
contents: read
pull-requests: write
runs-on: [self-hosted]
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Install Nodejs
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: "20"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: node_modules/.cache/turbo
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}-
- name: Install Vercel CLI
run: pnpm add --global vercel@canary
- name: Pull Vercel Env variables (network configs)
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Copy the .env file
run: cp ./.vercel/.env.production.local ./sdk/.env
- name: Build Explorer
run: pnpm explorer build
- name: Build Vercel Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
68 changes: 0 additions & 68 deletions .github/workflows/apps_ui_kit_deploy.yml

This file was deleted.

Loading

0 comments on commit 6afee7e

Please sign in to comment.