diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-04-12 15:39:33 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-04-12 15:48:16 +0700 |
commit | ab1020e0111e3a06146b3dc0ede6692aa0896243 (patch) | |
tree | ab4d319db8f2e7baf5f48e301c8172d5e03a16ea /.github/workflows | |
parent | 6ddd0ed73dc6f03ab7ff7e1a12d20ab8fdeb3178 (diff) | |
download | blog-ab1020e0111e3a06146b3dc0ede6692aa0896243.tar.gz |
Use Hugo manually instead
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/hugo.yml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 42b1dd0..98595e4 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -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: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + + - name: Build + run: hugo --minify - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.1 + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 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 + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public |