Skip to content

Commit

Permalink
feat: vercel 베포 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-dong-su committed Mar 6, 2024
1 parent 8dae5f1 commit 3f8e3e0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 61 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/cd-develop-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,13 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v2
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.PERSONAL_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@latest
with:
source-directory: '.'
destination-github-username: guesung
destination-repository-name: gloddy-client-publishing
user-email: gueit214@naver.com
commit-message: ${{ github.event.commits[0].message }}
target-branch: develop
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DEV_PROJECT_ID }}
23 changes: 8 additions & 15 deletions .github/workflows/cd-master-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,13 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v2
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.PERSONAL_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@latest
with:
source-directory: '.'
destination-github-username: guesung
destination-repository-name: gloddy-client-publishing
user-email: gueit214@naver.com
commit-message: ${{ github.event.commits[0].message }}
target-branch: master
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
62 changes: 31 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,34 +115,34 @@ jobs:
if: github.event_name != 'push'
run: yarn format

job_nextjs_bundle_analysis:
name: Nextjs bundle analysis
runs-on: ubuntu-latest
needs: [job_build]
steps:
- name: Check out current commit (${{ github.sha }})
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ env.DEFAULT_NODE_VERSION }}

- name: Check dependency cache
uses: actions/cache@v3
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ needs.job_build.outputs.dependency_cache_key }}

- name: Check build cache
uses: actions/cache@v3
with:
path: ${{ env.CACHED_BUILD_PATHS }}
key: ${{ needs.job_build.outputs.build_cache_key }}

- name: Analyze bundle sizes
uses: transferwise/actions-next-bundle-analyzer@master
with:
workflow-id: ci.yml
base-branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# job_nextjs_bundle_analysis:
# name: Nextjs bundle analysis
# runs-on: ubuntu-latest
# needs: [job_build]
# steps:
# - name: Check out current commit (${{ github.sha }})
# uses: actions/checkout@v2
# - name: Set up Node
# uses: actions/setup-node@v2
# with:
# node-version: ${{ env.DEFAULT_NODE_VERSION }}

# - name: Check dependency cache
# uses: actions/cache@v3
# with:
# path: ${{ env.CACHED_DEPENDENCY_PATHS }}
# key: ${{ needs.job_build.outputs.dependency_cache_key }}

# - name: Check build cache
# uses: actions/cache@v3
# with:
# path: ${{ env.CACHED_BUILD_PATHS }}
# key: ${{ needs.job_build.outputs.build_cache_key }}

# - name: Analyze bundle sizes
# uses: transferwise/actions-next-bundle-analyzer@master
# with:
# workflow-id: ci.yml
# base-branch: main
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3f8e3e0

Please sign in to comment.