From 0550eff5be9d513b22d84daed3c289a611696e47 Mon Sep 17 00:00:00 2001 From: JeonSuna Date: Sat, 24 Jan 2026 17:21:22 +0900 Subject: [PATCH 1/2] test: deploy test --- src/shared/CardItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/CardItem.tsx b/src/shared/CardItem.tsx index d3b5820..c285240 100644 --- a/src/shared/CardItem.tsx +++ b/src/shared/CardItem.tsx @@ -16,7 +16,7 @@ export const CardItem = () => {

Title

- 주절주절ㅇㅇㅇㅇㅇㅇㅇdddddddㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ + 주절주절ㅇㅇㅇㅇㅇㅇㅇdddddddㅇㅇㅇㅇㅇㄹㄹㄹㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ

From 3f14fe43c675649fedf4f61476782278d7b2cefc Mon Sep 17 00:00:00 2001 From: JeonSuna Date: Sat, 24 Jan 2026 17:30:15 +0900 Subject: [PATCH 2/2] test: deploy test --- .github/workflows/deploy.yaml | 17 +++++++----- .github/workflows/preview.yaml | 48 ++++++++++++++++++++-------------- 2 files changed, 39 insertions(+), 26 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d32c47d..1e56a15 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,21 +1,25 @@ -name: Deploy +name: deploy on: push: - branches: ["main"] + branches: [main] jobs: build: runs-on: ubuntu-latest - container: pandoc/latex - steps: - uses: actions/checkout@v2 + - name: Install mustache (to update the date) run: apk add ruby && gem install mustache - - name: creates output - run: sh ./build.sh + + - name: Give build.sh execute permission + run: chmod +x ./build.sh + + - name: Run build script + run: ./build.sh + - name: Pushes to another repository id: push_directory uses: cpina/github-action-push-to-another-repository@main @@ -28,5 +32,6 @@ jobs: user-email: ${{ secrets.EMAIL }} commit-message: ${{ github.event.commits[0].message }} target-branch: main + - name: Test get variable exported by push-to-another-repository run: echo $DESTINATION_CLONED_DIRECTORY diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index e85be31..0e811ac 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -7,37 +7,45 @@ on: jobs: vercel-preview: runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + pull-requests: write env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - + GIT_AUTHOR_EMAIL: ${{ secrets.EMAIL }} + GIT_AUTHOR_NAME: "JeonSuna" steps: - uses: actions/checkout@v4 + - name: Install Vercel CLI - run: npm install --global vercel@latest && npm install --global pnpm - - name: Get Vercel Environment Variables - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - id: deploy + run: npm install --global vercel@latest + + - name: Pull Vercel Environment + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} --cwd=techfork-fe + - name: Build Project + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --cwd=techfork-fe + + - name: Override Git Author run: | + git config --global user.email "${GIT_AUTHOR_EMAIL}" + git config --global user.name "${GIT_AUTHOR_NAME}" + git commit --amend --no-edit --author="${GIT_AUTHOR_NAME} <${GIT_AUTHOR_EMAIL}>" - vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel-output.txt - echo "preview_url=$(cat vercel-output.txt)" >> $GITHUB_OUTPUT + - name: Deploy to Preview + id: deploy + run: | + DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --cwd=techfork-fe + echo "preview_url=$DEPLOY_URL" >> $GITHUB_OUTPUT - - name: Comment PR with Preview URL + - name: Comment Preview URL uses: thollander/actions-comment-pull-request@v2 with: message: | - ✅ PREVIEW ${{ steps.deploy.outputs.preview_url }} - -permissions: - contents: read - pages: write - deployments: write - id-token: write - issues: write - pull-requests: write + 🎉 구현한 기능 Preview : ${{ steps.deploy.outputs.preview_url }} + + comment_tag: "vercel_preview_${{ github.event.pull_request.number }}" + mode: "upsert"