From 9fc34958c149a49e0a88d8dd0502bcfcbba02782 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 ++++++++++++++---- .../hooks/head-start/announcement-bar.html | 11 ----------- 2 files changed, 14 insertions(+), 15 deletions(-) delete mode 100644 layouts/partials/hooks/head-start/announcement-bar.html diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6dedad4..cedbd07 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 public' #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 diff --git a/layouts/partials/hooks/head-start/announcement-bar.html b/layouts/partials/hooks/head-start/announcement-bar.html deleted file mode 100644 index 8732d35..0000000 --- a/layouts/partials/hooks/head-start/announcement-bar.html +++ /dev/null @@ -1,11 +0,0 @@ -
-
- We moved to a New Site. - This site will NOT UPDATE any more. - -
-
- Please visit https://hpcde.hpcer.dev for latest news. -
-
\ No newline at end of file