update deploy script to deploy to netlify

This commit is contained in:
Matthew Wong 2022-04-12 12:46:14 -04:00
parent 793d40567f
commit 312cbf1b7d

View File

@ -28,10 +28,9 @@ jobs:
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@v1.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: master # deploying branch
cname: quartz.jzhao.xyz
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: 9e65bb31-a460-4a21-aeba-5e7f210eb925
build_directory: 'public'