OSDN Git Service

[fix] : Fixed working dir
[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         run: bash ./update-blog.sh
24         #run: hugo --minify -D
25
26       - name: Deploy
27         uses: peaceiris/actions-gh-pages@v3
28         with:
29           github_token: ${{ secrets.GITHUB_TOKEN }}
30           publish_branch: public
31           publish_dir: ./
32