Skip to content

Commit

Permalink
change deployment from github-pages to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
genshen committed Jul 7, 2023
1 parent 8e818a1 commit 8b45737
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

1 comment on commit 8b45737

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for hpcde-github-io ready!

✅ Preview
https://hpcde-github-foyed4zys-genshen.vercel.app

Built with commit 8b45737.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.