diff --git a/.github/workflows/cd-develop-branch.yml b/.github/workflows/cd-develop-branch.yml index 760930512..ca8e6e8c5 100644 --- a/.github/workflows/cd-develop-branch.yml +++ b/.github/workflows/cd-develop-branch.yml @@ -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 }} diff --git a/.github/workflows/cd-master-branch.yml b/.github/workflows/cd-master-branch.yml index d140e7aa1..c60d89ac4 100644 --- a/.github/workflows/cd-master-branch.yml +++ b/.github/workflows/cd-master-branch.yml @@ -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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c6f84f1c..ef9ccab2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}