|
1 | | -name: Production CI |
2 | | -env: |
3 | | - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} |
4 | | - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} |
5 | | - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} |
6 | | - NEXT_PUBLIC_API_BASE_URL: ${{ secrets.NEXT_PUBLIC_API_BASE_URL }} |
7 | | - NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} |
8 | | - NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} |
9 | | - NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} |
10 | | -on: |
11 | | - push: |
12 | | - branches: |
13 | | - - develop |
14 | | - pull_request: |
15 | | - branches: |
16 | | - - develop |
| 1 | +# name: Production CI |
| 2 | +# env: |
| 3 | +# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} |
| 4 | +# VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} |
| 5 | +# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} |
| 6 | +# NEXT_PUBLIC_API_BASE_URL: ${{ secrets.NEXT_PUBLIC_API_BASE_URL }} |
| 7 | +# NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} |
| 8 | +# NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} |
| 9 | +# NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} |
| 10 | +# on: |
| 11 | +# push: |
| 12 | +# branches: |
| 13 | +# - develop |
| 14 | +# pull_request: |
| 15 | +# branches: |
| 16 | +# - develop |
17 | 17 |
|
18 | | -jobs: |
19 | | - build: |
20 | | - runs-on: ubuntu-latest |
21 | | - steps: |
22 | | - - name: Checkout |
23 | | - uses: actions/checkout@v4 |
| 18 | +# jobs: |
| 19 | +# build: |
| 20 | +# runs-on: ubuntu-latest |
| 21 | +# steps: |
| 22 | +# - name: Checkout |
| 23 | +# uses: actions/checkout@v4 |
24 | 24 |
|
25 | | - - name: Setup Node.js environment |
26 | | - uses: actions/setup-node@v4 |
27 | | - with: |
28 | | - node-version: 18 |
29 | | - cache: "yarn" |
| 25 | +# - name: Setup Node.js environment |
| 26 | +# uses: actions/setup-node@v4 |
| 27 | +# with: |
| 28 | +# node-version: 18 |
| 29 | +# cache: "yarn" |
30 | 30 |
|
31 | | - - name: Get yarn cache directory path |
32 | | - id: yarn-cache-dir-path |
33 | | - run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT |
| 31 | +# - name: Get yarn cache directory path |
| 32 | +# id: yarn-cache-dir-path |
| 33 | +# run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT |
34 | 34 |
|
35 | | - - uses: actions/cache@v4 |
36 | | - id: yarn-cache |
37 | | - with: |
38 | | - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
39 | | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
40 | | - restore-keys: | |
41 | | - ${{ runner.os }}-yarn- |
| 35 | +# - uses: actions/cache@v4 |
| 36 | +# id: yarn-cache |
| 37 | +# with: |
| 38 | +# path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
| 39 | +# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
| 40 | +# restore-keys: | |
| 41 | +# ${{ runner.os }}-yarn- |
42 | 42 |
|
43 | | - - name: Install dependencies |
44 | | - run: yarn |
| 43 | +# - name: Install dependencies |
| 44 | +# run: yarn |
45 | 45 |
|
46 | | - - name: Build |
47 | | - run: yarn build |
| 46 | +# - name: Build |
| 47 | +# run: yarn build |
48 | 48 |
|
49 | | - deploy-vercel: |
50 | | - runs-on: ubuntu-latest |
51 | | - needs: build |
52 | | - steps: |
53 | | - - name: Checkout |
54 | | - uses: actions/checkout@v4 |
| 49 | +# deploy-vercel: |
| 50 | +# runs-on: ubuntu-latest |
| 51 | +# needs: build |
| 52 | +# steps: |
| 53 | +# - name: Checkout |
| 54 | +# uses: actions/checkout@v4 |
55 | 55 |
|
56 | | - - name: Setup Node.js environment |
57 | | - uses: actions/setup-node@v4 |
58 | | - with: |
59 | | - node-version: 18 |
60 | | - cache: "yarn" |
| 56 | +# - name: Setup Node.js environment |
| 57 | +# uses: actions/setup-node@v4 |
| 58 | +# with: |
| 59 | +# node-version: 18 |
| 60 | +# cache: "yarn" |
61 | 61 |
|
62 | | - - name: Get yarn cache directory path |
63 | | - id: yarn-cache-dir-path |
64 | | - run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT |
| 62 | +# - name: Get yarn cache directory path |
| 63 | +# id: yarn-cache-dir-path |
| 64 | +# run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT |
65 | 65 |
|
66 | | - - uses: actions/cache@v4 |
67 | | - id: yarn-cache |
68 | | - with: |
69 | | - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
70 | | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
71 | | - restore-keys: | |
72 | | - ${{ runner.os }}-yarn- |
| 66 | +# - uses: actions/cache@v4 |
| 67 | +# id: yarn-cache |
| 68 | +# with: |
| 69 | +# path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
| 70 | +# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
| 71 | +# restore-keys: | |
| 72 | +# ${{ runner.os }}-yarn- |
73 | 73 |
|
74 | | - - name: Install dependencies |
75 | | - run: yarn |
| 74 | +# - name: Install dependencies |
| 75 | +# run: yarn |
76 | 76 |
|
77 | | - - name: Deploy to Vercel if needed |
78 | | - run: | |
79 | | - npm install --global vercel@latest |
80 | | - vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} |
81 | | - vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} |
82 | | - vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |
| 77 | +# - name: Deploy to Vercel if needed |
| 78 | +# run: | |
| 79 | +# npm install --global vercel@latest |
| 80 | +# vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} |
| 81 | +# vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} |
| 82 | +# vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |
0 commit comments