--- /dev/null
+name: Hugo
+
+on: push
+
+jobs:
+ gh-pages:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ submodules: true
+ fetch-depth: 0
+
+ # https://github.com/marketplace/actions/github-pages-action
+ - name: Setup
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: '0.88.1'
+ extended: true
+
+ - name: Build
+ working-directory: ./blog
+ #run: ./update-blog,sh
+ run: hugo --minify
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_branch: public
+ publish_dir: ./
+