From 8b4573710fc9f92889b98af2997e6f63577e069d Mon Sep 17 00:00:00 2001 From: genshen Date: Fri, 7 Jul 2023 17:10:01 +0800 Subject: [PATCH] change deployment from github-pages to vercel --- .github/workflows/gh-pages.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6dedad4..cc1585e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -25,8 +25,18 @@ jobs: run: hugo --minify - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.ref == 'refs/heads/master' }} + uses: amondnet/vercel-action@v19 with: - deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} - publish_dir: ./public \ No newline at end of file + vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required + github-token: ${{ secrets.GITHUB_TOKEN }} #Optional + # vercel-args: '--prod' #Optional + vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required + vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required + # working-directory: ./sub-directory + + # - name: Deploy gh-pages + # uses: peaceiris/actions-gh-pages@v3 + # if: ${{ github.ref == 'refs/heads/master' }} + # with: + # deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + # publish_dir: ./public \ No newline at end of file