OSDN Git Service

[fix] : Fixed typo
[alterlinux/hayao.fascode.net.git] / .github / workflows / hugo.yaml
1 name: Hugo
2
3 on: push
4
5 jobs:
6   gh-pages:
7     runs-on: ubuntu-latest
8     steps:
9       - name: Checkout
10         uses: actions/checkout@v2
11         with:
12           submodules: true
13           fetch-depth: 0 
14
15       # https://github.com/marketplace/actions/github-pages-action
16       - name: Setup
17         uses: peaceiris/actions-hugo@v2
18         with:
19           hugo-version: '0.88.1'
20           extended: true
21
22       - name: Build
23         working-directory: ./blog
24         #run: ./update-blog,sh
25         run: hugo --minify
26
27       - name: Deploy
28         uses: peaceiris/actions-gh-pages@v3
29         with:
30           github_token: ${{ secrets.GITHUB_TOKEN }}
31           publish_branch: gh-pages
32