Use Hugo manually instead

This commit is contained in:
Ngô Ngọc Đức Huy 2021-04-12 15:39:33 +07:00
parent 6ddd0ed73d
commit ab1020e011
Signed by: huyngo
GPG Key ID: 904AF1C7CDF695C3
3 changed files with 12 additions and 11 deletions

View File

@ -26,15 +26,16 @@ jobs:
- name: Reconfig
run: sed -i "s/huyngo.srht.site/huy-ngo.github.io/" config.toml
- name: Hugo Build
uses: jakejarvis/hugo-build-action@v0.82.0
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
branch: gh-pages # The branch the action should deploy to.
folder: public # The folder the action should deploy.
clean: true
clean-exclude: |
.nojekyll
.nojekyll
hugo-version: 'latest'
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public