Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(tooling-ci): connect vercel to git #4766

Merged
merged 11 commits into from
Jan 16, 2025
Merged
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
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
Loading