diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 82c10b5..34ec2a9 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,7 +3,7 @@ name: GitHub Pages on: push: branches: - - gh-pages # Set a branch to deploy + - master # Set a branch to deploy pull_request: jobs: @@ -20,15 +20,16 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: 'latest' - # extended: true + hugo-version: '0.90.0' + extended: true - name: Build - run: hugo --minify + run: hugo --gc --minify - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/main' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: main publish_dir: ./public