-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tooling-ci): connect vercel to git (#4766)
* 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
1 parent
ffd581a
commit 6afee7e
Showing
12 changed files
with
106 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.