Skip to content

Commit 8b3c36c

Browse files
committed
chore: vercel preview action 삭제
1 parent 6b46b89 commit 8b3c36c

File tree

1 file changed

+1
-67
lines changed

1 file changed

+1
-67
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Preview CI
1+
name: CI
22

33
env:
44
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
@@ -42,69 +42,3 @@ jobs:
4242

4343
- name: Run build
4444
run: yarn build
45-
46-
deploy-to-vercel:
47-
runs-on: ubuntu-latest
48-
outputs:
49-
statis: ${{ job.status }}
50-
preview_url: ${{ steps.deploy-vercel.outputs.preview_url }}
51-
currnent_time: ${{ steps.current-time.outputs.formattedTime }}
52-
needs: ci
53-
steps:
54-
- name: Checkout
55-
uses: actions/checkout@v4
56-
57-
- name: Setup node
58-
uses: actions/setup-node@v4
59-
with:
60-
node-version: 18
61-
cache: "yarn"
62-
63-
- name: Set yarn version
64-
id: set-version
65-
run: |
66-
yarn set version 4.1.1
67-
echo "YARN_VERSION=$(yarn -v)" >> $GITHUB_OUTPUT
68-
69-
- name: Yarn cache - PnP
70-
uses: actions/cache@v4
71-
with:
72-
path: |
73-
.yarn/cache
74-
.pnp.*
75-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ steps.set-version.outputs.YARN_VERSION }}
76-
restore-keys: |
77-
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-
78-
79-
- name: Install dependencies
80-
run: yarn
81-
82-
- name: Deploy to Vercel
83-
id: deploy-vercel
84-
run: |
85-
npm install --global vercel@latest
86-
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
87-
vercel build --token=${{ secrets.VERCEL_TOKEN }}
88-
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel-output.txt
89-
echo "preview_url=$(cat vercel-output.txt)" >> $GITHUB_OUTPUT
90-
91-
- name: Get current time
92-
uses: josStorer/get-current-time@v2
93-
id: current-time
94-
with:
95-
format: "YYYY년 MM월 DD일 HH시 mm분"
96-
utcOffset: "+09:00"
97-
98-
github-preview-comment:
99-
runs-on: ubuntu-latest
100-
needs: [deploy-to-vercel]
101-
steps:
102-
- name: Comment PR
103-
uses: thollander/actions-comment-pull-request@v3
104-
with:
105-
comment-tag: ${{ github.event.number }}
106-
message: |
107-
108-
🧷 Preview: ${{ needs.deploy-to-vercel.outputs.preview_url }}
109-
110-
⏰ Update: ${{ needs.deploy-to-vercel.outputs.currnent_time }}

0 commit comments

Comments
 (0)