Skip to content

Commit

Permalink
run parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Aug 17, 2024
1 parent 81476c0 commit 53b7103
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
42 changes: 38 additions & 4 deletions .github/workflows/ci-preview-serial.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Preview CI - Serial without cache
name: Preview CI - Parellel
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
TURBO_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
NEXT_PUBLIC_SERVER_BASE_URL: ${{secrets.NEXT_PUBLIC_SERVER_BASE_URL }}
TEST_ACCESS_TOKEN: ${{secrets.TEST_ACCESS_TOKEN }}
TEST_REFRESH_TOKEN: ${{secrets.TEST_REFRESH_TOKEN }}
Expand All @@ -11,7 +10,7 @@ on:
branches-ignore:
- main
jobs:
CI:
Setup:
runs-on: ubuntu-latest
steps:
# checkout and install pnpm
Expand All @@ -32,7 +31,7 @@ jobs:
# install dependencies
- run: npx pnpm i -r

# dotenv
# set .env.local
- name: create dotenv
run: |
touch apps/bottle/.env.local
Expand All @@ -48,6 +47,24 @@ jobs:
# run turbo tasks
- run: pnpm run ci

Deploy-Bottle:
runs-on: ubuntu-latest
steps:
# checkout and install pnpm
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
# setup node
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Deploy Bottle to Vercel
run: |
npm install --global vercel@latest
Expand Down Expand Up @@ -83,6 +100,23 @@ jobs:
-d "$DATA" \
${{ secrets.DISCORD_WEBHOOK_URL }}
Deploy-Web:
runs-on: ubuntu-latest
steps:
# checkout and install pnpm
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
# setup node
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Deploy Web to Vercel
run: |
npm install --global vercel@latest
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import './globals.css';
import '@bottlesteam/ui/styles';

export const metadata: Metadata = {
title: '보틀',
description: '당신의 마음을 전달하세요, 보틀',
title: 'Bottle',
description: '당신의 마음을 전달하세요: 보틀',
};

export default function RootLayout({
Expand Down

0 comments on commit 53b7103

Please sign in to comment.